[openwrt/openwrt] ramips: mt7621_nand: don't set owner
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 25 04:14:10 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4f2dadcf95e1ba18bbb2d59f3c7e20e3d4da5208
commit 4f2dadcf95e1ba18bbb2d59f3c7e20e3d4da5208
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Wed Aug 14 19:59:19 2024 -0700
ramips: mt7621_nand: don't set owner
Found with coccinelle:
No need to set .owner here. The core will do it.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16217
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c b/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c
index 880c8578bd..fba389e5a9 100644
--- a/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c
+++ b/target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c
@@ -1248,7 +1248,6 @@ static int mt7621_nfc_init_chip(struct mt7621_nfc *nfc)
nand->ecc.write_oob_raw = mt7621_nfc_write_oob_raw;
mtd = nand_to_mtd(nand);
- mtd->owner = THIS_MODULE;
mtd->dev.parent = nfc->dev;
mtd->name = MT7621_NFC_NAME;
mtd_set_ooblayout(mtd, &mt7621_nfc_ooblayout_ops);
@@ -1338,7 +1337,6 @@ static struct platform_driver mt7621_nfc_driver = {
.remove = mt7621_nfc_remove,
.driver = {
.name = MT7621_NFC_NAME,
- .owner = THIS_MODULE,
.of_match_table = mt7621_nfc_id_table,
},
};
More information about the lede-commits
mailing list