aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2412/s3c2412.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2412/s3c2412.c')
-rw-r--r--arch/arm/mach-s3c2412/s3c2412.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2412/s3c2412.c b/arch/arm/mach-s3c2412/s3c2412.c
index 867ce2e269f6..aff6e85a97c6 100644
--- a/arch/arm/mach-s3c2412/s3c2412.c
+++ b/arch/arm/mach-s3c2412/s3c2412.c
@@ -18,7 +18,7 @@
18#include <linux/init.h> 18#include <linux/init.h>
19#include <linux/clk.h> 19#include <linux/clk.h>
20#include <linux/delay.h> 20#include <linux/delay.h>
21#include <linux/sysdev.h> 21#include <linux/device.h>
22#include <linux/syscore_ops.h> 22#include <linux/syscore_ops.h>
23#include <linux/serial_core.h> 23#include <linux/serial_core.h>
24#include <linux/platform_device.h> 24#include <linux/platform_device.h>
@@ -218,25 +218,26 @@ void __init s3c2412_init_clocks(int xtal)
218 s3c2412_baseclk_add(); 218 s3c2412_baseclk_add();
219} 219}
220 220
221/* need to register class before we actually register the device, and 221/* need to register the subsystem before we actually register the device, and
222 * we also need to ensure that it has been initialised before any of the 222 * we also need to ensure that it has been initialised before any of the
223 * drivers even try to use it (even if not on an s3c2412 based system) 223 * drivers even try to use it (even if not on an s3c2412 based system)
224 * as a driver which may support both 2410 and 2440 may try and use it. 224 * as a driver which may support both 2410 and 2440 may try and use it.
225*/ 225*/
226 226
227struct sysdev_class s3c2412_sysclass = { 227struct bus_type s3c2412_subsys = {
228 .name = "s3c2412-core", 228 .name = "s3c2412-core",
229 .dev_name = "s3c2412-core",
229}; 230};
230 231
231static int __init s3c2412_core_init(void) 232static int __init s3c2412_core_init(void)
232{ 233{
233 return sysdev_class_register(&s3c2412_sysclass); 234 return subsys_system_register(&s3c2412_subsys, NULL);
234} 235}
235 236
236core_initcall(s3c2412_core_init); 237core_initcall(s3c2412_core_init);
237 238
238static struct sys_device s3c2412_sysdev = { 239static struct device s3c2412_dev = {
239 .cls = &s3c2412_sysclass, 240 .bus = &s3c2412_subsys,
240}; 241};
241 242
242int __init s3c2412_init(void) 243int __init s3c2412_init(void)
@@ -248,5 +249,5 @@ int __init s3c2412_init(void)
248#endif 249#endif
249 register_syscore_ops(&s3c24xx_irq_syscore_ops); 250 register_syscore_ops(&s3c24xx_irq_syscore_ops);
250 251
251 return sysdev_register(&s3c2412_sysdev); 252 return device_register(&s3c2412_dev);
252} 253}