From: Jingoo Han Date: Tue, 5 Nov 2013 05:57:19 +0000 (+1100) Subject: drivers/rtc/rtc-pcf2123.c: use dev_get_platdata() X-Git-Tag: next-20131105~2^2~62 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=303825e383f5f07a4014fe1b1bff13b7e0fba02a;p=karo-tx-linux.git drivers/rtc/rtc-pcf2123.c: use dev_get_platdata() Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c index 1725b5090e33..d1953bb244c5 100644 --- a/drivers/rtc/rtc-pcf2123.c +++ b/drivers/rtc/rtc-pcf2123.c @@ -327,7 +327,7 @@ kfree_exit: static int pcf2123_remove(struct spi_device *spi) { - struct pcf2123_plat_data *pdata = spi->dev.platform_data; + struct pcf2123_plat_data *pdata = dev_get_platdata(&spi->dev); int i; if (pdata) {