]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mtd: hyperbus: Kconfig: Fix HBMC_AM654 dependencies
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 19 Jul 2019 08:29:12 +0000 (13:59 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sat, 3 Aug 2019 00:11:41 +0000 (02:11 +0200)
commit2d75989d2d92b71f3f34f2704ac109897a87319f
treeb93bf844781b7e6aa6a6661a5e1349e091f645a4
parent8493b2a06fc5b77ef5c579dc32b12761f7b7a84c
mtd: hyperbus: Kconfig: Fix HBMC_AM654 dependencies

On x86_64, when CONFIG_OF is not disabled:

WARNING: unmet direct dependencies detected for MUX_MMIO
  Depends on [n]: MULTIPLEXER [=y] && (OF [=n] || COMPILE_TEST [=n])
  Selected by [y]:
  - HBMC_AM654 [=y] && MTD [=y] && MTD_HYPERBUS [=y]

due to
config HBMC_AM654
tristate "HyperBus controller driver for AM65x SoC"
select MULTIPLEXER
select MUX_MMIO

Fix this by making HBMC_AM654 imply MUX_MMIO instead of select so
that dependencies are taken care of. MUX_MMIO is optional for
functioning of driver.

Fixes: b07079f1642c ("mtd: hyperbus: Add driver for TI's HyperBus memory controller")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/hyperbus/Kconfig