• Randy Dunlap's avatar
    mtd: hyperbus: fix dependency and build error · dc9cfd26
    Randy Dunlap authored
    lib/devres.c, which implements devm_ioremap_resource(), is only built
    when CONFIG_HAS_IOMEM is set/enabled, so MTD_HYPERBUS should depend
    on HAS_IOMEM.  Fixes a build error and a Kconfig warning (as seen on
    UML builds):
    
    WARNING: unmet direct dependencies detected for MTD_COMPLEX_MAPPINGS
      Depends on [n]: MTD [=m] && HAS_IOMEM [=n]
      Selected by [m]:
      - MTD_HYPERBUS [=m] && MTD [=m]
    
    ERROR: "devm_ioremap_resource" [drivers/mtd/hyperbus/hyperbus-core.ko] undefined!
    
    Fixes: dcc7d344 ("mtd: Add support for HyperBus memory devices")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Cc: Vignesh Raghavendra <vigneshr@ti.com>
    Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: linux-mtd@lists.infradead.org
    Acked-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
    Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
    dc9cfd26
Name
Last commit
Last update
..
chips Loading commit data...
devices Loading commit data...
hyperbus Loading commit data...
lpddr Loading commit data...
maps Loading commit data...
nand Loading commit data...
parsers Loading commit data...
spi-nor Loading commit data...
tests Loading commit data...
ubi Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
ar7part.c Loading commit data...
bcm47xxpart.c Loading commit data...
bcm63xxpart.c Loading commit data...
cmdlinepart.c Loading commit data...
ftl.c Loading commit data...
inftlcore.c Loading commit data...
inftlmount.c Loading commit data...
mtd_blkdevs.c Loading commit data...
mtdblock.c Loading commit data...
mtdblock_ro.c Loading commit data...
mtdchar.c Loading commit data...
mtdconcat.c Loading commit data...
mtdcore.c Loading commit data...
mtdcore.h Loading commit data...
mtdoops.c Loading commit data...
mtdpart.c Loading commit data...
mtdsuper.c Loading commit data...
mtdswap.c Loading commit data...
nftlcore.c Loading commit data...
nftlmount.c Loading commit data...
ofpart.c Loading commit data...
rfd_ftl.c Loading commit data...
sm_ftl.c Loading commit data...
sm_ftl.h Loading commit data...
ssfdc.c Loading commit data...