public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH 4/5] mtd: sf: Drop plat from sf_probe
Date: Thu, 14 May 2020 17:41:44 +0530	[thread overview]
Message-ID: <20200514121145.28737-5-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200514121145.28737-1-jagan@amarulasolutions.com>

dm_spi_slave_platdata used in sf_probe for printing
plat->cs value and there is no relevant usage apart
from this.

We have enouch debug messages available in SPI and SF
areas so drop this plat get and associated bug statement.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 drivers/mtd/spi/sf_probe.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 72b6ee702d..89e384901c 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -140,13 +140,11 @@ static int spi_flash_std_get_sw_write_prot(struct udevice *dev)
 int spi_flash_std_probe(struct udevice *dev)
 {
 	struct spi_slave *slave = dev_get_parent_priv(dev);
-	struct dm_spi_slave_platdata *plat = dev_get_parent_platdata(dev);
 	struct spi_flash *flash;
 
 	flash = dev_get_uclass_priv(dev);
 	flash->dev = dev;
 	flash->spi = slave;
-	debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
 	return spi_flash_probe_slave(flash);
 }
 
-- 
2.20.1

  parent reply	other threads:[~2020-05-14 12:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 12:11 [PATCH 0/5] sf: Cleanup Jagan Teki
2020-05-14 12:11 ` [PATCH 1/5] mtd: spi: Call sst_write in _write ops Jagan Teki
2020-05-19 19:15   ` Jagan Teki
2020-05-14 12:11 ` [PATCH 2/5] cmd: sf Drop reassignment of new into flash Jagan Teki
2020-05-19 19:25   ` Jagan Teki
2020-05-14 12:11 ` [PATCH 3/5] env: sf: Preserve and free the previous flash Jagan Teki
2020-05-15  7:24   ` Pratyush Yadav
2020-05-15  7:44     ` Jagan Teki
2020-05-15  8:49       ` Pratyush Yadav
2020-05-18 12:06         ` Jagan Teki
2020-05-18 15:41           ` Pratyush Yadav
2020-05-14 12:11 ` Jagan Teki [this message]
2020-05-15  7:17   ` [PATCH 4/5] mtd: sf: Drop plat from sf_probe Pratyush Yadav
2020-05-19 19:32     ` Jagan Teki
2020-05-14 12:11 ` [PATCH 5/5] mtd: spi: Use IS_ENABLED to prevent ifdef Jagan Teki
2020-05-14 16:31   ` Daniel Schwierzeck
2020-05-15  4:27     ` Stefan Roese
2020-05-15  7:22       ` Rasmus Villemoes
2020-05-15  7:33         ` Rasmus Villemoes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200514121145.28737-5-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox