Commit 837ccda3 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Linus Walleij

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: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 18fadd6a
...@@ -87,6 +87,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource); ...@@ -87,6 +87,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource);
* resource managemend * resource managemend
* @index: resource index * @index: resource index
*/ */
#ifdef CONFIG_HAS_IOMEM
void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
unsigned int index) unsigned int index)
{ {
...@@ -96,6 +97,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, ...@@ -96,6 +97,7 @@ void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
return devm_ioremap_resource(&pdev->dev, res); return devm_ioremap_resource(&pdev->dev, res);
} }
EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource); EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource);
#endif /* CONFIG_HAS_IOMEM */
/** /**
* platform_get_irq - get an IRQ for a device * platform_get_irq - get an IRQ for a device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment