Skip to content

Commit

Permalink
ARM: 7906/1: mmc: mmci: Remove unnecessary amba_set_drvdata()
Browse files Browse the repository at this point in the history
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: 0998d06)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Michal Simek authored and Russell King committed Dec 29, 2013
1 parent de77d1e commit 23c3452
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,8 +1683,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);

Expand Down

0 comments on commit 23c3452

Please sign in to comment.