Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

We only build devm_ioremap_resource() if HAS_IOMEM is selected, so this
dependency must cascade down to devm_platform_ioremap_resource().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
837ccda3 18fadd6a

+2
+2
drivers/base/platform.c
··· 87 87 * resource managemend 88 88 * @index: resource index 89 89 */ 90 + #ifdef CONFIG_HAS_IOMEM 90 91 void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, 91 92 unsigned int index) 92 93 { ··· 97 96 return devm_ioremap_resource(&pdev->dev, res); 98 97 } 99 98 EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource); 99 + #endif /* CONFIG_HAS_IOMEM */ 100 100 101 101 /** 102 102 * platform_get_irq - get an IRQ for a device