mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 12:49:08 +00:00
Raw NAND fixes:
- denali: Fix a regression caused by the nand_scan() rework - docg4: Fix a build error when gcc decides to not iniline some functions (can be reproduced with gcc 4.1.2) -----BEGIN PGP SIGNATURE----- iQI5BAABCAAjBQJbiAQPHBxib3Jpcy5icmV6aWxsb25AYm9vdGxpbi5jb20ACgkQ Ze02AX4ItwBHzA/+LXEMrRvDDcfZjeO7lwzFpYNzxMmhcYuMUR7KD7frP5ey0SYu 3SfV0nGRLJyk/qVIWgZZ9J5XfNHHW2M3njx9w2GYWvRuSV/s7OpnnjAqPAoVWi8d aw40vaYBu04StvgBsj+Zzxjrf6sUJaHDs/VrLZrWmD60HiGHHQ+PzH4+YGvm+aPC RaGacBvELmfrn046BCsciaQc3ohaTxpnHzSRW2twpq34Eijqt0MpKcRxA29jRP8l qz5uZUAE8PPDtbqFwHaAObUivEkzocZG24DcTUHHtrda2NX8Rs+oWcDbUH6TujeX ajdmiWKiV481BKWVOW9HgBJo2V8CbmKW+pJ4/a/TjzHaOOy3M7v2rcRiqInsU4n6 cPVW8x0OgCvAYLPyPNiut4X42JZjcMesUXbXL9ewGtAK0VsEQ5HUsaLbe9Vy7fRT HeJ9VNL1s6YixOsxmv7XeVKc+EiMmBCy9LDA1JQKSEAGvy/ZJV/uvmUbEHdPpLjh 2qba7n38RgNVmx2fu57xjTMW1ptdgaJ4DDaZivMHvKMpUEx2zFsANVJnWNQMpzOE tC8doIDzB9ZUh8udZzJ+7b5OWniD/cuoqJLmBnu6DeytSJmMh9mvvjU3ElEetX8m npwVuvVuFtc7YG4rtKvpAjc55k4GLMaIxrbPGAHLJHyg8lsojzmDu5y+Avw= =4fYE -----END PGP SIGNATURE----- Merge tag 'mtd/for-4.19-rc2' of git://git.infradead.org/linux-mtd Pull mtd fixes from Boris Brezillon: "Raw NAND fixes: - denali: Fix a regression caused by the nand_scan() rework - docg4: Fix a build error when gcc decides to not iniline some functions (can be reproduced with gcc 4.1.2): * tag 'mtd/for-4.19-rc2' of git://git.infradead.org/linux-mtd: mtd: rawnand: denali: do not pass zero maxchips to nand_scan() mtd: rawnand: docg4: Remove wrong __init annotations
This commit is contained in:
commit
9f8f16c86e
@ -1338,6 +1338,11 @@ int denali_init(struct denali_nand_info *denali)
|
||||
|
||||
denali_enable_irq(denali);
|
||||
denali_reset_banks(denali);
|
||||
if (!denali->max_banks) {
|
||||
/* Error out earlier if no chip is found for some reasons. */
|
||||
ret = -ENODEV;
|
||||
goto disable_irq;
|
||||
}
|
||||
|
||||
denali->active_bank = DENALI_INVALID_BANK;
|
||||
|
||||
|
@ -1218,7 +1218,7 @@ static int docg4_resume(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __init init_mtd_structs(struct mtd_info *mtd)
|
||||
static void init_mtd_structs(struct mtd_info *mtd)
|
||||
{
|
||||
/* initialize mtd and nand data structures */
|
||||
|
||||
@ -1290,7 +1290,7 @@ static void __init init_mtd_structs(struct mtd_info *mtd)
|
||||
|
||||
}
|
||||
|
||||
static int __init read_id_reg(struct mtd_info *mtd)
|
||||
static int read_id_reg(struct mtd_info *mtd)
|
||||
{
|
||||
struct nand_chip *nand = mtd_to_nand(mtd);
|
||||
struct docg4_priv *doc = nand_get_controller_data(nand);
|
||||
|
Loading…
Reference in New Issue
Block a user