]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: hyperbus: fix dependency and build error
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 13 Aug 2019 23:03:13 +0000 (16:03 -0700)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Aug 2019 12:31:23 +0000 (14:31 +0200)
commitc4236bd2cc78b9c5386c364220aab034582f3b02
tree55ab60fe34f22463ed8aea73d1d78be7b9ec79ad
parentb8786e214867c70a88181789c2584744d61bde86
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: 6b944aa1378d ("mtd: Add support for HyperBus memory devices")
Signed-off-by: Randy 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: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/hyperbus/Kconfig