diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:03:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-07 15:03:30 -0500 |
commit | 7affca3537d74365128e477b40c529d6f2fe86c8 (patch) | |
tree | 20be92bd240029182fc89c2c4f25401b7715dcae /arch/arm/mach-s3c2416/s3c2416.c | |
parent | 356b95424cfb456e14a59eaa579422ce014c424b (diff) | |
parent | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (diff) |
Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
* 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (73 commits)
arm: fix up some samsung merge sysdev conversion problems
firmware: Fix an oops on reading fw_priv->fw in sysfs loading file
Drivers:hv: Fix a bug in vmbus_driver_unregister()
driver core: remove __must_check from device_create_file
debugfs: add missing #ifdef HAS_IOMEM
arm: time.h: remove device.h #include
driver-core: remove sysdev.h usage.
clockevents: remove sysdev.h
arm: convert sysdev_class to a regular subsystem
arm: leds: convert sysdev_class to a regular subsystem
kobject: remove kset_find_obj_hinted()
m86k: gpio - convert sysdev_class to a regular subsystem
mips: txx9_sram - convert sysdev_class to a regular subsystem
mips: 7segled - convert sysdev_class to a regular subsystem
sh: dma - convert sysdev_class to a regular subsystem
sh: intc - convert sysdev_class to a regular subsystem
power: suspend - convert sysdev_class to a regular subsystem
power: qe_ic - convert sysdev_class to a regular subsystem
power: cmm - convert sysdev_class to a regular subsystem
s390: time - convert sysdev_class to a regular subsystem
...
Fix up conflicts with 'struct sysdev' removal from various platform
drivers that got changed:
- arch/arm/mach-exynos/cpu.c
- arch/arm/mach-exynos/irq-eint.c
- arch/arm/mach-s3c64xx/common.c
- arch/arm/mach-s3c64xx/cpu.c
- arch/arm/mach-s5p64x0/cpu.c
- arch/arm/mach-s5pv210/common.c
- arch/arm/plat-samsung/include/plat/cpu.h
- arch/powerpc/kernel/sysfs.c
and fix up cpu_is_hotpluggable() as per Greg in include/linux/cpu.h
Diffstat (limited to 'arch/arm/mach-s3c2416/s3c2416.c')
-rw-r--r-- | arch/arm/mach-s3c2416/s3c2416.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2416/s3c2416.c b/arch/arm/mach-s3c2416/s3c2416.c index 46062232bbc7..5287d2808d3e 100644 --- a/arch/arm/mach-s3c2416/s3c2416.c +++ b/arch/arm/mach-s3c2416/s3c2416.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/gpio.h> | 31 | #include <linux/gpio.h> |
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/serial_core.h> | 33 | #include <linux/serial_core.h> |
34 | #include <linux/sysdev.h> | 34 | #include <linux/device.h> |
35 | #include <linux/syscore_ops.h> | 35 | #include <linux/syscore_ops.h> |
36 | #include <linux/clk.h> | 36 | #include <linux/clk.h> |
37 | #include <linux/io.h> | 37 | #include <linux/io.h> |
@@ -67,12 +67,13 @@ static struct map_desc s3c2416_iodesc[] __initdata = { | |||
67 | IODESC_ENT(TIMER), | 67 | IODESC_ENT(TIMER), |
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct sysdev_class s3c2416_sysclass = { | 70 | struct bus_type s3c2416_subsys = { |
71 | .name = "s3c2416-core", | 71 | .name = "s3c2416-core", |
72 | .dev_name = "s3c2416-core", | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | static struct sys_device s3c2416_sysdev = { | 75 | static struct device s3c2416_dev = { |
75 | .cls = &s3c2416_sysclass, | 76 | .bus = &s3c2416_subsys, |
76 | }; | 77 | }; |
77 | 78 | ||
78 | void s3c2416_restart(char mode, const char *cmd) | 79 | void s3c2416_restart(char mode, const char *cmd) |
@@ -106,7 +107,7 @@ int __init s3c2416_init(void) | |||
106 | #endif | 107 | #endif |
107 | register_syscore_ops(&s3c24xx_irq_syscore_ops); | 108 | register_syscore_ops(&s3c24xx_irq_syscore_ops); |
108 | 109 | ||
109 | return sysdev_register(&s3c2416_sysdev); | 110 | return device_register(&s3c2416_dev); |
110 | } | 111 | } |
111 | 112 | ||
112 | void __init s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 113 | void __init s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
@@ -134,7 +135,7 @@ void __init s3c2416_map_io(void) | |||
134 | iotable_init(s3c2416_iodesc, ARRAY_SIZE(s3c2416_iodesc)); | 135 | iotable_init(s3c2416_iodesc, ARRAY_SIZE(s3c2416_iodesc)); |
135 | } | 136 | } |
136 | 137 | ||
137 | /* need to register class before we actually register the device, and | 138 | /* need to register the subsystem before we actually register the device, and |
138 | * we also need to ensure that it has been initialised before any of the | 139 | * we also need to ensure that it has been initialised before any of the |
139 | * drivers even try to use it (even if not on an s3c2416 based system) | 140 | * drivers even try to use it (even if not on an s3c2416 based system) |
140 | * as a driver which may support both 2443 and 2440 may try and use it. | 141 | * as a driver which may support both 2443 and 2440 may try and use it. |
@@ -142,7 +143,7 @@ void __init s3c2416_map_io(void) | |||
142 | 143 | ||
143 | static int __init s3c2416_core_init(void) | 144 | static int __init s3c2416_core_init(void) |
144 | { | 145 | { |
145 | return sysdev_class_register(&s3c2416_sysclass); | 146 | return subsys_system_register(&s3c2416_subsys, NULL); |
146 | } | 147 | } |
147 | 148 | ||
148 | core_initcall(s3c2416_core_init); | 149 | core_initcall(s3c2416_core_init); |