From: Sachin Kamat Date: Thu, 6 Jun 2013 09:27:00 +0000 (+0100) Subject: staging: iio: lpc32xx_adc: Remove redundant platform_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~5845^2~209^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=065792ad0dc0ae5762ad0420edf9f2ac198015ac;p=firefly-linux-kernel-4.4.55.git staging: iio: lpc32xx_adc: Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Tested-by: Roland Stigge Acked-by: Roland Stigge Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/adc/lpc32xx_adc.c b/drivers/staging/iio/adc/lpc32xx_adc.c index 2f2f7fdd0691..9a4bb0999b51 100644 --- a/drivers/staging/iio/adc/lpc32xx_adc.c +++ b/drivers/staging/iio/adc/lpc32xx_adc.c @@ -215,7 +215,6 @@ static int lpc32xx_adc_remove(struct platform_device *pdev) iio_device_unregister(iodev); free_irq(irq, info); - platform_set_drvdata(pdev, NULL); clk_put(info->clk); iounmap(info->adc_base); iio_device_free(iodev);