summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-08-29 09:29:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 12:09:12 +0200
commitd9430f96c051ede4e4a3d5a20e68518181e9cd3c (patch)
tree1f4685af16e1de6d653078dbd5e91da023dfa45a /drivers/base
parenthwmon: pwm-fan: Use platform_get_irq_optional() (diff)
downloadlinux-d9430f96c051ede4e4a3d5a20e68518181e9cd3c.tar.xz
linux-d9430f96c051ede4e4a3d5a20e68518181e9cd3c.zip
driver core: platform: Export platform_get_irq_optional()
This function can be used by modules, so it needs to be exported. Reported-by: kbuild test robot <lkp@intel.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 0dda6ade50fd..11c6e56ccc22 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -213,6 +213,7 @@ int platform_get_irq_optional(struct platform_device *dev, unsigned int num)
{
return __platform_get_irq(dev, num);
}
+EXPORT_SYMBOL_GPL(platform_get_irq_optional);
/**
* platform_irq_count - Count the number of IRQs a platform device uses