[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c7c68ca23d51c799ce20be3e2f65019e4a537387.1380793579.git.michal.simek@xilinx.com>
Date: Thu, 3 Oct 2013 11:46:26 +0200
From: Michal Simek <michal.simek@...inx.com>
To: linux-kernel@...r.kernel.org, monstr@...str.eu
Cc: Russell King <linux@....linux.org.uk>, Chris Ball <cjb@...top.org>,
linux-mmc@...r.kernel.org
Subject: [PATCH 4/9] mmc: mmci: Remove unnecessary amba_set_drvdata()
Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.
Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
drivers/mmc/host/mmci.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index c3785ed..07e17f1 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -1678,8 +1678,6 @@ static int mmci_remove(struct amba_device *dev)
{
struct mmc_host *mmc = amba_get_drvdata(dev);
- amba_set_drvdata(dev, NULL);
-
if (mmc) {
struct mmci_host *host = mmc_priv(mmc);
--
1.8.2.3
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists