Commit 2cbc2187 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Torvalds

drivers/rtc/rtc-ds1742.c: remove unused field "rtc" from private structure

Private field "rtc" is not used outside "probe", so there is no reason to
keep it.
Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 25e2818e
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#define RTC_BATT_FLAG 0x80 #define RTC_BATT_FLAG 0x80
struct rtc_plat_data { struct rtc_plat_data {
struct rtc_device *rtc;
void __iomem *ioaddr_nvram; void __iomem *ioaddr_nvram;
void __iomem *ioaddr_rtc; void __iomem *ioaddr_rtc;
size_t size_nvram; size_t size_nvram;
...@@ -206,7 +205,6 @@ static int ds1742_rtc_probe(struct platform_device *pdev) ...@@ -206,7 +205,6 @@ static int ds1742_rtc_probe(struct platform_device *pdev)
&ds1742_rtc_ops, THIS_MODULE); &ds1742_rtc_ops, THIS_MODULE);
if (IS_ERR(rtc)) if (IS_ERR(rtc))
return PTR_ERR(rtc); return PTR_ERR(rtc);
pdata->rtc = rtc;
ret = sysfs_create_bin_file(&pdev->dev.kobj, &pdata->nvram_attr); ret = sysfs_create_bin_file(&pdev->dev.kobj, &pdata->nvram_attr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment