aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-parisc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c
index c29e91814c9a..b966f56da976 100644
--- a/drivers/rtc/rtc-parisc.c
+++ b/drivers/rtc/rtc-parisc.c
@@ -38,23 +38,23 @@ static const struct rtc_class_ops parisc_rtc_ops = {
38 38
39static int __init parisc_rtc_probe(struct platform_device *dev) 39static int __init parisc_rtc_probe(struct platform_device *dev)
40{ 40{
41 struct rtc_device *p; 41 struct rtc_device *rtc;
42 42
43 p = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops, 43 rtc = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
44 THIS_MODULE); 44 THIS_MODULE);
45 if (IS_ERR(p)) 45 if (IS_ERR(rtc))
46 return PTR_ERR(p); 46 return PTR_ERR(rtc);
47 47
48 platform_set_drvdata(dev, p); 48 platform_set_drvdata(dev, rtc);
49 49
50 return 0; 50 return 0;
51} 51}
52 52
53static int __exit parisc_rtc_remove(struct platform_device *dev) 53static int __exit parisc_rtc_remove(struct platform_device *dev)
54{ 54{
55 struct rtc_device *p = platform_get_drvdata(dev); 55 struct rtc_device *rtc = platform_get_drvdata(dev);
56 56
57 rtc_device_unregister(p); 57 rtc_device_unregister(rtc);
58 58
59 return 0; 59 return 0;
60} 60}