Skip to content

Commit 837ccda

Browse files
brgllinusw
authored andcommitted
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>
1 parent 18fadd6 commit 837ccda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/base/platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource);
8787
* resource managemend
8888
* @index: resource index
8989
*/
90+
#ifdef CONFIG_HAS_IOMEM
9091
void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
9192
unsigned int index)
9293
{
@@ -96,6 +97,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
9697
return devm_ioremap_resource(&pdev->dev, res);
9798
}
9899
EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource);
100+
#endif /* CONFIG_HAS_IOMEM */
99101

100102
/**
101103
* platform_get_irq - get an IRQ for a device

0 commit comments

Comments
 (0)