Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Kay Sievers and committed by
Greg Kroah-Hartman
a6ec0c03 269a3eb1

+5 -4
+5 -4
arch/m68k/platform/coldfire/gpio.c
··· 15 15 16 16 #include <linux/kernel.h> 17 17 #include <linux/init.h> 18 - #include <linux/sysdev.h> 18 + #include <linux/device.h> 19 19 20 20 #include <asm/gpio.h> 21 21 #include <asm/pinmux.h> ··· 115 115 mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0); 116 116 } 117 117 118 - struct sysdev_class mcf_gpio_sysclass = { 119 - .name = "gpio", 118 + struct bus_type mcf_gpio_subsys = { 119 + .name = "gpio", 120 + .dev_name = "gpio", 120 121 }; 121 122 122 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 128 core_initcall(mcf_gpio_sysinit);