diff options
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/platform/coldfire/gpio.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index ff0045793450..292a1a5a2d7c 100644 --- a/arch/m68k/platform/coldfire/gpio.c +++ b/arch/m68k/platform/coldfire/gpio.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/sysdev.h> | 18 | #include <linux/device.h> |
19 | 19 | ||
20 | #include <asm/gpio.h> | 20 | #include <asm/gpio.h> |
21 | #include <asm/pinmux.h> | 21 | #include <asm/pinmux.h> |
@@ -115,13 +115,14 @@ void mcf_gpio_free(struct gpio_chip *chip, unsigned offset) | |||
115 | mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0); | 115 | mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0); |
116 | } | 116 | } |
117 | 117 | ||
118 | struct sysdev_class mcf_gpio_sysclass = { | 118 | struct bus_type mcf_gpio_subsys = { |
119 | .name = "gpio", | 119 | .name = "gpio", |
120 | .dev_name = "gpio", | ||
120 | }; | 121 | }; |
121 | 122 | ||
122 | static int __init mcf_gpio_sysinit(void) | 123 | static int __init mcf_gpio_sysinit(void) |
123 | { | 124 | { |
124 | return sysdev_class_register(&mcf_gpio_sysclass); | 125 | return subsys_system_register(&mcf_gpio_subsys, NULL); |
125 | } | 126 | } |
126 | 127 | ||
127 | core_initcall(mcf_gpio_sysinit); | 128 | core_initcall(mcf_gpio_sysinit); |