diff options
author | Helge Deller <deller@gmx.de> | 2015-09-08 17:50:03 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2015-09-08 17:53:48 +0200 |
commit | 6dc0dcde406bb0e40ad6a6f45f44534d3a094205 (patch) | |
tree | add1612c83daaeac44957ef0072d63bbf2ebc035 /arch/parisc | |
parent | 72581cecee411be2b2c00226c98e0c20aab337a2 (diff) |
parisc: Use platform_device_register_simple("rtc-generic")
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/time.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index cc68a4fbce6a..400acac0a304 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -224,20 +224,14 @@ void __init start_cpu_itimer(void) 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) { - if (platform_device_register(&rtc_generic_dev) < 0) - printk(KERN_ERR "unable to register rtc device...\n"); + struct platform_device *pdev; - /* not necessarily an error */ - return 0; + pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); + return PTR_ERR_OR_ZERO(pdev); } -module_init(rtc_init); +device_initcall(rtc_init); void read_persistent_clock(struct timespec *ts) { |