From: Kay Sievers Date: Wed, 21 Dec 2011 23:09:54 +0000 (-0800) Subject: m86k: gpio - convert sysdev_class to a regular subsystem X-Git-Tag: v3.3-rc1~174^2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6ec0c03a039677e4b4b5a67a6e19e9e26303000;p=platform%2Fkernel%2Flinux-stable.git m86k: gpio - convert sysdev_class to a regular subsystem After all sysdev classes are ported to regular driver core entities, the sysdev implementation will be entirely removed from the kernel. Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index ff004579..292a1a5 100644 --- a/arch/m68k/platform/coldfire/gpio.c +++ b/arch/m68k/platform/coldfire/gpio.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include @@ -115,13 +115,14 @@ void mcf_gpio_free(struct gpio_chip *chip, unsigned offset) mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0); } -struct sysdev_class mcf_gpio_sysclass = { - .name = "gpio", +struct bus_type mcf_gpio_subsys = { + .name = "gpio", + .dev_name = "gpio", }; static int __init mcf_gpio_sysinit(void) { - return sysdev_class_register(&mcf_gpio_sysclass); + return subsys_system_register(&mcf_gpio_subsys, NULL); } core_initcall(mcf_gpio_sysinit);