summaryrefslogtreecommitdiff
path: root/drivers/block/n64cart.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-01-26 02:32:37 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-02-22 01:37:52 +0300
commite39e31326305d9bb35f8ab78c4310b9a38bbb3aa (patch)
tree7d869a31da70bf401e1d6fcd3c5934895d36d34c /drivers/block/n64cart.c
parent9ee8c9a1c752f6181c1403fa5b4da620b410d9af (diff)
downloadlinux-e39e31326305d9bb35f8ab78c4310b9a38bbb3aa.tar.xz
n64: move module param at the top
Move module parameters at the top of the file after macro definition & global variables below macro definitions just like we have for other modules. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'drivers/block/n64cart.c')
-rw-r--r--drivers/block/n64cart.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/block/n64cart.c b/drivers/block/n64cart.c
index 63090030ed2b..b18f034ee1ad 100644
--- a/drivers/block/n64cart.c
+++ b/drivers/block/n64cart.c
@@ -13,10 +13,6 @@
#include <linux/module.h>
#include <linux/platform_device.h>
-static unsigned int start, size;
-static u32 __iomem *reg_base;
-static struct device *dev;
-
#define PI_DRAM_REG 0
#define PI_CART_REG 1
#define PI_READ_REG 2
@@ -31,6 +27,17 @@ static struct device *dev;
#define MIN_ALIGNMENT 8
+static u32 __iomem *reg_base;
+static struct device *dev;
+
+static unsigned int start;
+module_param(start, uint, 0);
+MODULE_PARM_DESC(start, "Start address of the cart block data");
+
+static unsigned int size;
+module_param(size, uint, 0);
+MODULE_PARM_DESC(size, "Size of the cart block data, in bytes");
+
static void n64cart_write_reg(const u8 reg, const u32 value)
{
writel(value, reg_base + reg);
@@ -177,12 +184,6 @@ static int __init n64cart_init(void)
return platform_driver_probe(&n64cart_driver, n64cart_probe);
}
-module_param(start, uint, 0);
-MODULE_PARM_DESC(start, "Start address of the cart block data");
-
-module_param(size, uint, 0);
-MODULE_PARM_DESC(size, "Size of the cart block data, in bytes");
-
module_init(n64cart_init);
MODULE_AUTHOR("Lauri Kasanen <cand@gmx.com>");