Message ID | 20211109125457.213-1-caihuoqing@baidu.com |
---|---|
State | Changes Requested |
Headers | show |
Series | mtd: rawnand: denali: Add the dependency on HAS_IOMEM | expand |
Hi Cai, caihuoqing@baidu.com wrote on Tue, 9 Nov 2021 20:54:55 +0800: > The helper function devm_platform_ioremap_resource_xxx() > needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM. > > Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> > --- Can you please add a Fixes tag? > drivers/mtd/nand/raw/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig > index 67b7cb67c030..0a45d3c6c15b 100644 > --- a/drivers/mtd/nand/raw/Kconfig > +++ b/drivers/mtd/nand/raw/Kconfig > @@ -26,7 +26,7 @@ config MTD_NAND_DENALI_PCI > config MTD_NAND_DENALI_DT > tristate "Denali NAND controller as a DT device" > select MTD_NAND_DENALI > - depends on HAS_DMA && HAVE_CLK && OF > + depends on HAS_DMA && HAVE_CLK && OF && HAS_IOMEM > help > Enable the driver for NAND flash on platforms using a Denali NAND > controller as a DT device. Thanks, Miquèl
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 67b7cb67c030..0a45d3c6c15b 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -26,7 +26,7 @@ config MTD_NAND_DENALI_PCI config MTD_NAND_DENALI_DT tristate "Denali NAND controller as a DT device" select MTD_NAND_DENALI - depends on HAS_DMA && HAVE_CLK && OF + depends on HAS_DMA && HAVE_CLK && OF && HAS_IOMEM help Enable the driver for NAND flash on platforms using a Denali NAND controller as a DT device.
The helper function devm_platform_ioremap_resource_xxx() needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM. Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)