Commit dc9cfd26 authored by Randy Dunlap's avatar Randy Dunlap Committed by Miquel Raynal
Browse files

mtd: hyperbus: fix dependency and build error

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>
parent a55aa89a
menuconfig MTD_HYPERBUS menuconfig MTD_HYPERBUS
tristate "HyperBus support" tristate "HyperBus support"
depends on HAS_IOMEM
select MTD_CFI select MTD_CFI
select MTD_MAP_BANK_WIDTH_2 select MTD_MAP_BANK_WIDTH_2
select MTD_CFI_AMDSTD select MTD_CFI_AMDSTD
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment