summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch')
-rw-r--r--target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch b/target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch
index 3227840..b4720b1 100644
--- a/target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch
+++ b/target/linux/cns3xxx/patches-4.9/097-l2x0_cmdline_disable.patch
@@ -8,15 +8,15 @@
+static int cns3xxx_l2x0_enable = 1;
+
+static int __init cns3xxx_l2x0_disable(char *s)
- {
-- void __iomem *base = ioremap(CNS3XXX_L2C_BASE, SZ_4K);
++{
+ cns3xxx_l2x0_enable = 0;
+ return 1;
+}
+__setup("nol2x0", cns3xxx_l2x0_disable);
+
+static int __init cns3xxx_l2x0_init(void)
-+{
+ {
+- void __iomem *base = ioremap(CNS3XXX_L2C_BASE, SZ_4K);
+ void __iomem *base;
u32 val;