Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23c34527 authored by Michal Simek's avatar Michal Simek Committed by Russell King
Browse files

ARM: 7906/1: 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: 0998d063)

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent de77d1e5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);