summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-08-29 10:29:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 13:09:12 +0300
commitd9430f96c051ede4e4a3d5a20e68518181e9cd3c (patch)
tree1f4685af16e1de6d653078dbd5e91da023dfa45a /drivers/base
parent6e7e5c7fbc1c84e4ac657e0cb5bf9ca24492cc8f (diff)
downloadlinux-d9430f96c051ede4e4a3d5a20e68518181e9cd3c.tar.xz
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