Lines Matching defs:rtc
0 /* rtc-starfire.c: Starfire platform RTC driver.
11 #include <linux/rtc.h>
40 struct rtc_device *rtc;
42 rtc = devm_rtc_allocate_device(&pdev->dev);
43 if (IS_ERR(rtc))
44 return PTR_ERR(rtc);
46 rtc->ops = &starfire_rtc_ops;
47 rtc->range_max = U32_MAX;
49 platform_set_drvdata(pdev, rtc);
51 return rtc_register_device(rtc);
56 .name = "rtc-starfire",