From: Jingoo Han Date: Tue, 10 Sep 2013 09:53:36 +0000 (+0900) Subject: spi: pl022: remove unnecessary amba_set_drvdata() X-Git-Tag: next-20130919~24^2~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ebfee9118599dece86429270be1bcbb3099f237;p=karo-tx-linux.git spi: pl022: remove unnecessary amba_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 1ff2d8e78f51..c13d523f1f48 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2286,7 +2286,6 @@ pl022_remove(struct amba_device *adev) amba_release_regions(adev); tasklet_disable(&pl022->pump_transfers); spi_unregister_master(pl022->master); - amba_set_drvdata(adev, NULL); return 0; }