From: Greg Kroah-Hartman Date: Tue, 28 Oct 2014 09:49:59 +0000 (+0800) Subject: greybus: Remove id_table usages X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cea54c12f7badb18f2adbf718b8451f5d14a654d;p=linux.git greybus: Remove id_table usages We aren't using an id_table for "drivers" at this moment, as the whole driver model interaction is under heavy rework. So remove these for now to keep things easier to understand for future patches. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/battery-gb.c b/drivers/staging/greybus/battery-gb.c index b7d8e2c8fb852..28c0d0b9aefea 100644 --- a/drivers/staging/greybus/battery-gb.c +++ b/drivers/staging/greybus/battery-gb.c @@ -92,11 +92,6 @@ struct gb_battery_voltage_request { }; -static const struct greybus_module_id id_table[] = { - { GREYBUS_DEVICE(0x42, 0x42) }, /* make shit up */ - { }, /* terminating NULL entry */ -}; - static int battery_operation(struct gb_battery *gb, int type, void *response, int response_size) { diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 7c0cb6227b1fb..252d131c3ae85 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -119,11 +119,6 @@ void greybus_deregister(struct greybus_driver *driver) EXPORT_SYMBOL_GPL(greybus_deregister); -static const struct greybus_module_id fake_greybus_module_id = { - GREYBUS_DEVICE(0x42, 0x42) -}; - - /** * gb_add_module * diff --git a/drivers/staging/greybus/sdio-gb.c b/drivers/staging/greybus/sdio-gb.c index e9c3117805560..30caba8d0fa5a 100644 --- a/drivers/staging/greybus/sdio-gb.c +++ b/drivers/staging/greybus/sdio-gb.c @@ -19,11 +19,6 @@ struct gb_sdio_host { // FIXME - some lock? }; -static const struct greybus_module_id id_table[] = { - { GREYBUS_DEVICE(0x43, 0x43) }, /* make shit up */ - { }, /* terminating NULL entry */ -}; - static void gb_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) { // FIXME - do something here... diff --git a/drivers/staging/greybus/uart-gb.c b/drivers/staging/greybus/uart-gb.c index f88a301eb9fe3..b52d9e11f5366 100644 --- a/drivers/staging/greybus/uart-gb.c +++ b/drivers/staging/greybus/uart-gb.c @@ -51,11 +51,6 @@ struct gb_tty { struct mutex mutex; }; -static const struct greybus_module_id id_table[] = { - { GREYBUS_DEVICE(0x45, 0x45) }, /* make shit up */ - { }, /* terminating NULL entry */ -}; - static struct tty_driver *gb_tty_driver; static DEFINE_IDR(tty_minors); static DEFINE_MUTEX(table_lock);