summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2016-06-17 10:46:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-18 19:45:55 -0700
commitf9b5bd05a1b43de072da29649b192130411a982c (patch)
tree58d2c49a85acc891ef6d0c163339fb0e255f2439
parent1c013a5ca630eba9ee532eaa77aa67ad4164c298 (diff)
staging: ks7010: export sdio ids
So the module will be loaded automatically on card insertion. Rename the array while here. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ks7010/ks7010_sdio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index b3c98ebaec14..280cbfb6aa7f 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -27,11 +27,12 @@
static int reg_net = 0;
-static const struct sdio_device_id if_sdio_ids[] = {
+static const struct sdio_device_id ks7010_sdio_ids[] = {
{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_A, SDIO_DEVICE_ID_KS_7010)},
{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_B, SDIO_DEVICE_ID_KS_7010)},
{ /* all zero */ }
};
+MODULE_DEVICE_TABLE(sdio, ks7010_sdio_ids);
static int ks7910_sdio_probe(struct sdio_func *function,
const struct sdio_device_id *device);
@@ -952,7 +953,7 @@ static void ks7010_card_init(struct ks_wlan_private *priv)
static struct sdio_driver ks7010_sdio_driver = {
.name = "ks7910_sdio",
- .id_table = if_sdio_ids,
+ .id_table = ks7010_sdio_ids,
.probe = ks7910_sdio_probe,
.remove = ks7910_sdio_remove,
};