Skip to content

Commit

Permalink
Merge tag 'mtd/for-4.19-rc2' of git://git.infradead.org/linux-mtd
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Linus Torvalds committed Aug 30, 2018
2 parents 48f8e8e + 336d139 commit 9f8f16c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions drivers/mtd/nand/raw/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions drivers/mtd/nand/raw/docg4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9f8f16c

Please sign in to comment.