Skip to content

Commit

Permalink
m86k: gpio - convert sysdev_class to a regular subsystem
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Dec 21, 2011
1 parent 269a3eb commit a6ec0c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/m68k/platform/coldfire/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sysdev.h>
#include <linux/device.h>

#include <asm/gpio.h>
#include <asm/pinmux.h>
Expand Down Expand Up @@ -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);

0 comments on commit a6ec0c0

Please sign in to comment.