Commit b250c96e authored by dann frazier's avatar dann frazier Committed by Linus Torvalds

rtc-parisc: rename p pointer to rtc

Signed-off-by: default avatardann 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a8c20cd3
...@@ -38,23 +38,23 @@ static const struct rtc_class_ops parisc_rtc_ops = { ...@@ -38,23 +38,23 @@ static const struct rtc_class_ops parisc_rtc_ops = {
static int __init parisc_rtc_probe(struct platform_device *dev) 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, rtc = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
THIS_MODULE); THIS_MODULE);
if (IS_ERR(p)) if (IS_ERR(rtc))
return PTR_ERR(p); return PTR_ERR(rtc);
platform_set_drvdata(dev, p); platform_set_drvdata(dev, rtc);
return 0; return 0;
} }
static int __exit parisc_rtc_remove(struct platform_device *dev) 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; return 0;
} }
......
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