mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
rtc-parisc: rename p pointer to rtc
Signed-off-by: dann frazier <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Kyle McMartin <[email protected]> Cc: Grant Grundler <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a8c20cd3f7
commit
b250c96ea9
1 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue