提交 6dc0dcde 编写于 作者: H Helge Deller

parisc: Use platform_device_register_simple("rtc-generic")

Signed-off-by: NHelge Deller <deller@gmx.de>
上级 72581cec
...@@ -224,20 +224,14 @@ void __init start_cpu_itimer(void) ...@@ -224,20 +224,14 @@ void __init start_cpu_itimer(void)
per_cpu(cpu_data, cpu).it_value = next_tick; per_cpu(cpu_data, cpu).it_value = next_tick;
} }
static struct platform_device rtc_generic_dev = {
.name = "rtc-generic",
.id = -1,
};
static int __init rtc_init(void) static int __init rtc_init(void)
{ {
if (platform_device_register(&rtc_generic_dev) < 0) struct platform_device *pdev;
printk(KERN_ERR "unable to register rtc device...\n");
/* not necessarily an error */ pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
return 0; return PTR_ERR_OR_ZERO(pdev);
} }
module_init(rtc_init); device_initcall(rtc_init);
void read_persistent_clock(struct timespec *ts) void read_persistent_clock(struct timespec *ts)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册