rtc-parisc: rename p pointer to rtc
authordann frazier <dannf@hp.com>
Tue, 31 Mar 2009 22:24:55 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:25 +0000 (08:59 -0700)
Signed-off-by: dann frazier <dannf@hp.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Grant Grundler <grundler@parisc-linux.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-parisc.c

index c29e91814c9a487cdf1900ef7221f06725810d82..b966f56da976e4dec379c56eb6fcc88545883295 100644 (file)
@@ -38,23 +38,23 @@ static const struct rtc_class_ops parisc_rtc_ops = {
 
 static int __init parisc_rtc_probe(struct platform_device *dev)
 {
-       struct rtc_device *p;
+       struct rtc_device *rtc;
 
-       p = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
-                               THIS_MODULE);
-       if (IS_ERR(p))
-               return PTR_ERR(p);
+       rtc = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
+                                 THIS_MODULE);
+       if (IS_ERR(rtc))
+               return PTR_ERR(rtc);
 
-       platform_set_drvdata(dev, p);
+       platform_set_drvdata(dev, rtc);
 
        return 0;
 }
 
 static int __exit parisc_rtc_remove(struct platform_device *dev)
 {
-       struct rtc_device *p = platform_get_drvdata(dev);
+       struct rtc_device *rtc = platform_get_drvdata(dev);
 
-       rtc_device_unregister(p);
+       rtc_device_unregister(rtc);
 
        return 0;
 }