diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
commit | 4c5811bf463b0ef82fabbd1708f8bb2d753aeb18 (patch) | |
tree | ff37d31217c3804ca05de21a55a9b5ca1ca818b2 /arch/sparc/kernel/time_32.c | |
parent | f74b9444192c60603020c61d7915b72893137edc (diff) | |
parent | 9f15444fefdb33509132ff5c9be60cb315c44cb2 (diff) |
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
tty: serial: altera_jtaguart: Add device tree support
tty: serial: altera_uart: Add devicetree support
dt: eliminate of_platform_driver shim code
dt: Eliminate of_platform_{,un}register_driver
dt/serial: Eliminate users of of_platform_{,un}register_driver
dt/usb: Eliminate users of of_platform_{,un}register_driver
dt/video: Eliminate users of of_platform_{,un}register_driver
dt/net: Eliminate users of of_platform_{,un}register_driver
dt/sound: Eliminate users of of_platform_{,un}register_driver
dt/spi: Eliminate users of of_platform_{,un}register_driver
dt: uartlite: merge platform and of_platform driver bindings
dt: xilinx_hwicap: merge platform and of_platform driver bindings
ipmi: convert OF driver to platform driver
leds/leds-gpio: merge platform_driver with of_platform_driver
dt/sparc: Eliminate users of of_platform_{,un}register_driver
dt/powerpc: Eliminate users of of_platform_{,un}register_driver
dt/powerpc: move of_bus_type infrastructure to ibmebus
drivercore/dt: add a match table pointer to struct device
dt: Typo fix.
altera_ps2: Add devicetree support
...
Diffstat (limited to 'arch/sparc/kernel/time_32.c')
-rw-r--r-- | arch/sparc/kernel/time_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c index 4211bfc9bcad..19ab42a932db 100644 --- a/arch/sparc/kernel/time_32.c +++ b/arch/sparc/kernel/time_32.c | |||
@@ -137,7 +137,7 @@ static struct platform_device m48t59_rtc = { | |||
137 | }, | 137 | }, |
138 | }; | 138 | }; |
139 | 139 | ||
140 | static int __devinit clock_probe(struct platform_device *op, const struct of_device_id *match) | 140 | static int __devinit clock_probe(struct platform_device *op) |
141 | { | 141 | { |
142 | struct device_node *dp = op->dev.of_node; | 142 | struct device_node *dp = op->dev.of_node; |
143 | const char *model = of_get_property(dp, "model", NULL); | 143 | const char *model = of_get_property(dp, "model", NULL); |
@@ -171,7 +171,7 @@ static struct of_device_id __initdata clock_match[] = { | |||
171 | {}, | 171 | {}, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct of_platform_driver clock_driver = { | 174 | static struct platform_driver clock_driver = { |
175 | .probe = clock_probe, | 175 | .probe = clock_probe, |
176 | .driver = { | 176 | .driver = { |
177 | .name = "rtc", | 177 | .name = "rtc", |
@@ -184,7 +184,7 @@ static struct of_platform_driver clock_driver = { | |||
184 | /* Probe for the mostek real time clock chip. */ | 184 | /* Probe for the mostek real time clock chip. */ |
185 | static int __init clock_init(void) | 185 | static int __init clock_init(void) |
186 | { | 186 | { |
187 | return of_register_platform_driver(&clock_driver); | 187 | return platform_driver_register(&clock_driver); |
188 | } | 188 | } |
189 | /* Must be after subsys_initcall() so that busses are probed. Must | 189 | /* Must be after subsys_initcall() so that busses are probed. Must |
190 | * be before device_initcall() because things like the RTC driver | 190 | * be before device_initcall() because things like the RTC driver |