Skip to content

Commit

Permalink
rtc-parisc: rename p pointer to rtc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent a8c20cd commit b250c96
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/rtc/rtc-parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b250c96

Please sign in to comment.