From: Sergio Paracuellos Date: Mon, 23 Apr 2018 13:44:42 +0000 (+0200) Subject: staging: ks7010: move MODULE_DEVICE_TABLE related code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=78c74a5fe1fe89e6c6acc69f2448655b0e65f54a;p=openwrt%2Fstaging%2Fblogic.git staging: ks7010: move MODULE_DEVICE_TABLE related code This commit moves MODULE_DEVICE_TABLE related code to the end of the file. This is not necessary at all but moving it just before its use improves readability. Signed-off-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 434d5e8c8028..31022e40d8ed 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -101,13 +101,6 @@ enum gen_com_reg_b { #define KS7010_IO_BLOCK_SIZE 512 -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 inline void inc_txqhead(struct ks_wlan_private *priv) { priv->tx_dev.qhead = (priv->tx_dev.qhead + 1) % TX_DEVICE_BUFF_SIZE; @@ -1153,6 +1146,13 @@ static void ks7010_sdio_remove(struct sdio_func *func) kfree(card); } +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 struct sdio_driver ks7010_sdio_driver = { .name = "ks7010_sdio", .id_table = ks7010_sdio_ids,