ramips: mt7621_nand: don't set owner
authorRosen Penev <rosenp@gmail.com>
Thu, 15 Aug 2024 02:59:19 +0000 (19:59 -0700)
committerRobert Marko <robimarko@gmail.com>
Sun, 25 Aug 2024 11:14:07 +0000 (13:14 +0200)
Found with coccinelle:

No need to set .owner here. The core will do it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16217
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c

index 880c8578bd608a9f6ce50b86077e1ff09ebe8497..fba389e5a99b4078e2473c26c9f770bc32510d27 100644 (file)
@@ -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,
        },
 };