Skip to content

Commit d0c9a21

Browse files
committed
Merge tag 'mtd/for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull MTD updates from Miquel Raynal: "MTD device changes: - switch platform_driver back to remove() - misc fixes SPI-NAND changes: - a load of fixes to Winbond manufacturer driver - structure constification Raw NAND changes: - improve the power management of the GPMI driver - Davinci driver clean-ups - fix leak in the Atmel driver - fix some typos in the core SPI NOR changes: - Introduce byte swap support for 8D-8D-8D mode and a user for it: macronix. SPI NOR flashes may swap the bytes on a 16-bit boundary when configured in Octal DTR mode. For such cases the byte order is propagated through SPI MEM to the SPI controllers so that the controllers swap the bytes back at runtime. This avoids breaking the boot sequence because of the endianness problems that appear when the bootloaders use 1-1-1 and the kernel uses 8D-8D-8D with byte swap support. Along with the SPI MEM byte swap support we queue a patch for the SPI MXIC controller that swaps the bytes back at runtime" * tag 'mtd/for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (25 commits) mtd: spi-nor: core: replace dummy buswidth from addr to data mtd: spi-nor: winbond: add "w/ and w/o SFDP" comment mtd: spi-nor: spansion: Use nor->addr_nbytes in octal DTR mode in RD_ANY_REG_OP mtd: Switch back to struct platform_driver::remove() mtd: cfi_cmdset_0002: remove redundant assignment to variable ret mtd: spinand: Constify struct nand_ecc_engine_ops MAINTAINERS: add mailing list for GPMI NAND driver mtd: spinand: winbond: Sort the devices mtd: spinand: winbond: Ignore the last ID characters mtd: spinand: winbond: Fix 512GW, 01GW, 01JW and 02JW ECC information mtd: spinand: winbond: Fix 512GW and 02JW OOB layout mtd: nand: raw: gpmi: improve power management handling mtd: nand: raw: gpmi: switch to SYSTEM_SLEEP_PM_OPS mtd: rawnand: davinci: use generic device property helpers mtd: rawnand: davinci: break the line correctly mtd: rawnand: davinci: order headers alphabetically mtd: rawnand: atmel: Fix possible memory leak mtd: rawnand: Correct multiple typos in comments mtd: hyperbus: rpc-if: Add missing MODULE_DEVICE_TABLE mtd: spi-nor: add support for Macronix Octal flash ...
2 parents 9f3a2ba + 9444775 commit d0c9a21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+354
-212
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9056,6 +9056,7 @@ F: drivers/net/ethernet/freescale/gianfar*
90569056

90579057
FREESCALE GPMI NAND DRIVER
90589058
M: Han Xu <[email protected]>
9059+
90599060
90609061
S: Maintained
90619062
F: drivers/mtd/nand/raw/gpmi-nand/*

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,10 +1779,8 @@ static int __xipram do_write_oneword_retry(struct map_info *map,
17791779
map_write(map, CMD(0xF0), chip->start);
17801780
/* FIXME - should have reset delay before continuing */
17811781

1782-
if (++retry_cnt <= MAX_RETRIES) {
1783-
ret = 0;
1782+
if (++retry_cnt <= MAX_RETRIES)
17841783
goto retry;
1785-
}
17861784
}
17871785
xip_enable(map, chip, adr);
17881786

drivers/mtd/devices/bcm47xxsflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static void bcm47xxsflash_bcma_remove(struct platform_device *pdev)
367367

368368
static struct platform_driver bcma_sflash_driver = {
369369
.probe = bcm47xxsflash_bcma_probe,
370-
.remove_new = bcm47xxsflash_bcma_remove,
370+
.remove = bcm47xxsflash_bcma_remove,
371371
.driver = {
372372
.name = "bcma_sflash",
373373
},

drivers/mtd/devices/docg3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ static struct platform_driver g3_driver = {
20752075
},
20762076
.suspend = docg3_suspend,
20772077
.resume = docg3_resume,
2078-
.remove_new = docg3_release,
2078+
.remove = docg3_release,
20792079
};
20802080

20812081
module_platform_driver_probe(g3_driver, docg3_probe);

drivers/mtd/devices/phram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static void phram_remove(struct platform_device *pdev)
399399

400400
static struct platform_driver phram_driver = {
401401
.probe = phram_probe,
402-
.remove_new = phram_remove,
402+
.remove = phram_remove,
403403
.driver = {
404404
.name = "phram",
405405
.of_match_table = of_match_ptr(phram_of_match),

drivers/mtd/devices/powernv_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static struct platform_driver powernv_flash_driver = {
286286
.name = "powernv_flash",
287287
.of_match_table = powernv_flash_match,
288288
},
289-
.remove_new = powernv_flash_release,
289+
.remove = powernv_flash_release,
290290
.probe = powernv_flash_probe,
291291
};
292292

drivers/mtd/devices/spear_smi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ static struct platform_driver spear_smi_driver = {
10931093
.pm = &spear_smi_pm_ops,
10941094
},
10951095
.probe = spear_smi_probe,
1096-
.remove_new = spear_smi_remove,
1096+
.remove = spear_smi_remove,
10971097
};
10981098
module_platform_driver(spear_smi_driver);
10991099

drivers/mtd/devices/st_spi_fsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ MODULE_DEVICE_TABLE(of, stfsm_match);
21322132

21332133
static struct platform_driver stfsm_driver = {
21342134
.probe = stfsm_probe,
2135-
.remove_new = stfsm_remove,
2135+
.remove = stfsm_remove,
21362136
.driver = {
21372137
.name = "st-spi-fsm",
21382138
.of_match_table = stfsm_match,

drivers/mtd/hyperbus/hbmc-am654.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ MODULE_DEVICE_TABLE(of, am654_hbmc_dt_ids);
254254

255255
static struct platform_driver am654_hbmc_platform_driver = {
256256
.probe = am654_hbmc_probe,
257-
.remove_new = am654_hbmc_remove,
257+
.remove = am654_hbmc_remove,
258258
.driver = {
259259
.name = "hbmc-am654",
260260
.of_match_table = am654_hbmc_dt_ids,

drivers/mtd/hyperbus/rpc-if.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,16 @@ static void rpcif_hb_remove(struct platform_device *pdev)
163163
pm_runtime_disable(hyperbus->rpc.dev);
164164
}
165165

166+
static const struct platform_device_id rpc_if_hyperflash_id_table[] = {
167+
{ .name = "rpc-if-hyperflash" },
168+
{ /* sentinel */ }
169+
};
170+
MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table);
171+
166172
static struct platform_driver rpcif_platform_driver = {
167173
.probe = rpcif_hb_probe,
168-
.remove_new = rpcif_hb_remove,
174+
.remove = rpcif_hb_remove,
175+
.id_table = rpc_if_hyperflash_id_table,
169176
.driver = {
170177
.name = "rpc-if-hyperflash",
171178
},

drivers/mtd/lpddr/lpddr2_nvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static struct platform_driver lpddr2_nvm_drv = {
487487
.name = "lpddr2_nvm",
488488
},
489489
.probe = lpddr2_nvm_probe,
490-
.remove_new = lpddr2_nvm_remove,
490+
.remove = lpddr2_nvm_remove,
491491
};
492492

493493
module_platform_driver(lpddr2_nvm_drv);

drivers/mtd/maps/lantiq-flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ MODULE_DEVICE_TABLE(of, ltq_mtd_match);
184184

185185
static struct platform_driver ltq_mtd_driver = {
186186
.probe = ltq_mtd_probe,
187-
.remove_new = ltq_mtd_remove,
187+
.remove = ltq_mtd_remove,
188188
.driver = {
189189
.name = "ltq-nor",
190190
.of_match_table = ltq_mtd_match,

drivers/mtd/maps/physmap-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void physmap_flash_shutdown(struct platform_device *dev)
621621

622622
static struct platform_driver physmap_flash_driver = {
623623
.probe = physmap_flash_probe,
624-
.remove_new = physmap_flash_remove,
624+
.remove = physmap_flash_remove,
625625
.shutdown = physmap_flash_shutdown,
626626
.driver = {
627627
.name = "physmap-flash",

drivers/mtd/maps/plat-ram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ MODULE_ALIAS("platform:mtd-ram");
205205

206206
static struct platform_driver platram_driver = {
207207
.probe = platram_probe,
208-
.remove_new = platram_remove,
208+
.remove = platram_remove,
209209
.driver = {
210210
.name = "mtd-ram",
211211
},

drivers/mtd/maps/pxa2xx-flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static struct platform_driver pxa2xx_flash_driver = {
128128
.name = "pxa2xx-flash",
129129
},
130130
.probe = pxa2xx_flash_probe,
131-
.remove_new = pxa2xx_flash_remove,
131+
.remove = pxa2xx_flash_remove,
132132
.shutdown = pxa2xx_flash_shutdown,
133133
};
134134

drivers/mtd/maps/sa1100-flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static void sa1100_mtd_remove(struct platform_device *pdev)
293293

294294
static struct platform_driver sa1100_mtd_driver = {
295295
.probe = sa1100_mtd_probe,
296-
.remove_new = sa1100_mtd_remove,
296+
.remove = sa1100_mtd_remove,
297297
.driver = {
298298
.name = "sa1100-mtd",
299299
},

drivers/mtd/maps/sun_uflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static struct platform_driver uflash_driver = {
149149
.of_match_table = uflash_match,
150150
},
151151
.probe = uflash_probe,
152-
.remove_new = uflash_remove,
152+
.remove = uflash_remove,
153153
};
154154

155155
module_platform_driver(uflash_driver);

drivers/mtd/nand/ecc-mxic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,21 +723,21 @@ static int mxic_ecc_finish_io_req_pipelined(struct nand_device *nand,
723723
return ret;
724724
}
725725

726-
static struct nand_ecc_engine_ops mxic_ecc_engine_external_ops = {
726+
static const struct nand_ecc_engine_ops mxic_ecc_engine_external_ops = {
727727
.init_ctx = mxic_ecc_init_ctx_external,
728728
.cleanup_ctx = mxic_ecc_cleanup_ctx,
729729
.prepare_io_req = mxic_ecc_prepare_io_req_external,
730730
.finish_io_req = mxic_ecc_finish_io_req_external,
731731
};
732732

733-
static struct nand_ecc_engine_ops mxic_ecc_engine_pipelined_ops = {
733+
static const struct nand_ecc_engine_ops mxic_ecc_engine_pipelined_ops = {
734734
.init_ctx = mxic_ecc_init_ctx_pipelined,
735735
.cleanup_ctx = mxic_ecc_cleanup_ctx,
736736
.prepare_io_req = mxic_ecc_prepare_io_req_pipelined,
737737
.finish_io_req = mxic_ecc_finish_io_req_pipelined,
738738
};
739739

740-
struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void)
740+
const struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void)
741741
{
742742
return &mxic_ecc_engine_pipelined_ops;
743743
}
@@ -869,7 +869,7 @@ static struct platform_driver mxic_ecc_driver = {
869869
.of_match_table = mxic_ecc_of_ids,
870870
},
871871
.probe = mxic_ecc_probe,
872-
.remove_new = mxic_ecc_remove,
872+
.remove = mxic_ecc_remove,
873873
};
874874
module_platform_driver(mxic_ecc_driver);
875875

drivers/mtd/nand/ecc-sw-bch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int nand_ecc_sw_bch_finish_io_req(struct nand_device *nand,
384384
return max_bitflips;
385385
}
386386

387-
static struct nand_ecc_engine_ops nand_ecc_sw_bch_engine_ops = {
387+
static const struct nand_ecc_engine_ops nand_ecc_sw_bch_engine_ops = {
388388
.init_ctx = nand_ecc_sw_bch_init_ctx,
389389
.cleanup_ctx = nand_ecc_sw_bch_cleanup_ctx,
390390
.prepare_io_req = nand_ecc_sw_bch_prepare_io_req,

drivers/mtd/nand/ecc-sw-hamming.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ static int nand_ecc_sw_hamming_finish_io_req(struct nand_device *nand,
638638
return max_bitflips;
639639
}
640640

641-
static struct nand_ecc_engine_ops nand_ecc_sw_hamming_engine_ops = {
641+
static const struct nand_ecc_engine_ops nand_ecc_sw_hamming_engine_ops = {
642642
.init_ctx = nand_ecc_sw_hamming_init_ctx,
643643
.cleanup_ctx = nand_ecc_sw_hamming_cleanup_ctx,
644644
.prepare_io_req = nand_ecc_sw_hamming_prepare_io_req,

drivers/mtd/nand/onenand/generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static struct platform_driver generic_onenand_driver = {
104104
.name = DRIVER_NAME,
105105
},
106106
.probe = generic_onenand_probe,
107-
.remove_new = generic_onenand_remove,
107+
.remove = generic_onenand_remove,
108108
};
109109

110110
module_platform_driver(generic_onenand_driver);

drivers/mtd/nand/onenand/onenand_omap2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ MODULE_DEVICE_TABLE(of, omap2_onenand_id_table);
593593

594594
static struct platform_driver omap2_onenand_driver = {
595595
.probe = omap2_onenand_probe,
596-
.remove_new = omap2_onenand_remove,
596+
.remove = omap2_onenand_remove,
597597
.shutdown = omap2_onenand_shutdown,
598598
.driver = {
599599
.name = DRIVER_NAME,

drivers/mtd/nand/onenand/onenand_samsung.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ static struct platform_driver s3c_onenand_driver = {
991991
},
992992
.id_table = s3c_onenand_driver_ids,
993993
.probe = s3c_onenand_probe,
994-
.remove_new = s3c_onenand_remove,
994+
.remove = s3c_onenand_remove,
995995
};
996996

997997
module_platform_driver(s3c_onenand_driver);

drivers/mtd/nand/raw/ams-delta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ MODULE_DEVICE_TABLE(platform, gpio_nand_plat_id_table);
432432

433433
static struct platform_driver gpio_nand_driver = {
434434
.probe = gpio_nand_probe,
435-
.remove_new = gpio_nand_remove,
435+
.remove = gpio_nand_remove,
436436
.id_table = gpio_nand_plat_id_table,
437437
.driver = {
438438
.name = "ams-delta-nand",

drivers/mtd/nand/raw/arasan-nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ static struct platform_driver anfc_driver = {
15001500
.of_match_table = anfc_ids,
15011501
},
15021502
.probe = anfc_probe,
1503-
.remove_new = anfc_remove,
1503+
.remove = anfc_remove,
15041504
};
15051505
module_platform_driver(anfc_driver);
15061506

drivers/mtd/nand/raw/atmel/nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ static struct platform_driver atmel_nand_controller_driver = {
26632663
.pm = &atmel_nand_controller_pm_ops,
26642664
},
26652665
.probe = atmel_nand_controller_probe,
2666-
.remove_new = atmel_nand_controller_remove,
2666+
.remove = atmel_nand_controller_remove,
26672667
};
26682668
module_platform_driver(atmel_nand_controller_driver);
26692669

drivers/mtd/nand/raw/atmel/pmecc.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ atmel_pmecc_create_user(struct atmel_pmecc *pmecc,
362362
size = ALIGN(size, sizeof(s32));
363363
size += (req->ecc.strength + 1) * sizeof(s32) * 3;
364364

365-
user = kzalloc(size, GFP_KERNEL);
365+
user = devm_kzalloc(pmecc->dev, size, GFP_KERNEL);
366366
if (!user)
367367
return ERR_PTR(-ENOMEM);
368368

@@ -408,12 +408,6 @@ atmel_pmecc_create_user(struct atmel_pmecc *pmecc,
408408
}
409409
EXPORT_SYMBOL_GPL(atmel_pmecc_create_user);
410410

411-
void atmel_pmecc_destroy_user(struct atmel_pmecc_user *user)
412-
{
413-
kfree(user);
414-
}
415-
EXPORT_SYMBOL_GPL(atmel_pmecc_destroy_user);
416-
417411
static int get_strength(struct atmel_pmecc_user *user)
418412
{
419413
const int *strengths = user->pmecc->caps->strengths;

drivers/mtd/nand/raw/atmel/pmecc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ struct atmel_pmecc *devm_atmel_pmecc_get(struct device *dev);
5555
struct atmel_pmecc_user *
5656
atmel_pmecc_create_user(struct atmel_pmecc *pmecc,
5757
struct atmel_pmecc_user_req *req);
58-
void atmel_pmecc_destroy_user(struct atmel_pmecc_user *user);
59-
6058
void atmel_pmecc_reset(struct atmel_pmecc *pmecc);
6159
int atmel_pmecc_enable(struct atmel_pmecc_user *user, int op);
6260
void atmel_pmecc_disable(struct atmel_pmecc_user *user);

drivers/mtd/nand/raw/au1550nd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static struct platform_driver au1550nd_driver = {
357357
.name = "au1550-nand",
358358
},
359359
.probe = au1550nd_probe,
360-
.remove_new = au1550nd_remove,
360+
.remove = au1550nd_remove,
361361
};
362362

363363
module_platform_driver(au1550nd_driver);

drivers/mtd/nand/raw/bcm47xxnflash/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void bcm47xxnflash_remove(struct platform_device *pdev)
7070

7171
static struct platform_driver bcm47xxnflash_driver = {
7272
.probe = bcm47xxnflash_probe,
73-
.remove_new = bcm47xxnflash_remove,
73+
.remove = bcm47xxnflash_remove,
7474
.driver = {
7575
.name = "bcma_nflash",
7676
},

drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ MODULE_DEVICE_TABLE(of, bcm6368_nand_of_match);
117117

118118
static struct platform_driver bcm6368_nand_driver = {
119119
.probe = bcm6368_nand_probe,
120-
.remove_new = brcmnand_remove,
120+
.remove = brcmnand_remove,
121121
.driver = {
122122
.name = "bcm6368_nand",
123123
.pm = &brcmnand_pm_ops,

drivers/mtd/nand/raw/brcmnand/bcma_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int brcmnand_bcma_nand_probe(struct platform_device *pdev)
119119

120120
static struct platform_driver brcmnand_bcma_nand_driver = {
121121
.probe = brcmnand_bcma_nand_probe,
122-
.remove_new = brcmnand_remove,
122+
.remove = brcmnand_remove,
123123
.driver = {
124124
.name = "bcma_brcmnand",
125125
.pm = &brcmnand_pm_ops,

drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ MODULE_DEVICE_TABLE(of, bcmbca_nand_of_match);
112112

113113
static struct platform_driver bcmbca_nand_driver = {
114114
.probe = bcmbca_nand_probe,
115-
.remove_new = brcmnand_remove,
115+
.remove = brcmnand_remove,
116116
.driver = {
117117
.name = "bcmbca_nand",
118118
.pm = &brcmnand_pm_ops,

drivers/mtd/nand/raw/brcmnand/brcmnand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ static int write_oob_to_regs(struct brcmnand_controller *ctrl, int i,
15611561
(oob[j + 2] << 8) |
15621562
(oob[j + 3] << 0));
15631563

1564-
/* handle the remaing bytes */
1564+
/* handle the remaining bytes */
15651565
while (j < tbytes)
15661566
plast[k++] = oob[j++];
15671567

drivers/mtd/nand/raw/brcmnand/brcmstb_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static int brcmstb_nand_probe(struct platform_device *pdev)
2323

2424
static struct platform_driver brcmstb_nand_driver = {
2525
.probe = brcmstb_nand_probe,
26-
.remove_new = brcmnand_remove,
26+
.remove = brcmnand_remove,
2727
.driver = {
2828
.name = "brcmstb_nand",
2929
.pm = &brcmnand_pm_ops,

drivers/mtd/nand/raw/brcmnand/iproc_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, iproc_nand_of_match);
134134

135135
static struct platform_driver iproc_nand_driver = {
136136
.probe = iproc_nand_probe,
137-
.remove_new = brcmnand_remove,
137+
.remove = brcmnand_remove,
138138
.driver = {
139139
.name = "iproc_nand",
140140
.pm = &brcmnand_pm_ops,

drivers/mtd/nand/raw/cadence-nand-controller.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ static int cadence_nand_read_buf(struct cdns_nand_ctrl *cdns_ctrl,
18911891

18921892
int len_in_words = (data_dma_width == 4) ? len >> 2 : len >> 3;
18931893

1894-
/* read alingment data */
1894+
/* read alignment data */
18951895
if (data_dma_width == 4)
18961896
ioread32_rep(cdns_ctrl->io.virt, buf, len_in_words);
18971897
#ifdef CONFIG_64BIT
@@ -3055,7 +3055,7 @@ static void cadence_nand_dt_remove(struct platform_device *ofdev)
30553055

30563056
static struct platform_driver cadence_nand_dt_driver = {
30573057
.probe = cadence_nand_dt_probe,
3058-
.remove_new = cadence_nand_dt_remove,
3058+
.remove = cadence_nand_dt_remove,
30593059
.driver = {
30603060
.name = "cadence-nand-controller",
30613061
.of_match_table = cadence_nand_dt_ids,

drivers/mtd/nand/raw/cs553x_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#define NR_CS553X_CONTROLLERS 4
2828

29-
#define MSR_DIVIL_GLD_CAP 0x51400000 /* DIVIL capabilitiies */
29+
#define MSR_DIVIL_GLD_CAP 0x51400000 /* DIVIL capabilities */
3030
#define CAP_CS5535 0x2df000ULL
3131
#define CAP_CS5536 0x5df500ULL
3232

0 commit comments

Comments
 (0)