| From 4c839723ba916109cf974db07aa857e7b6c4fd14 Mon Sep 17 00:00:00 2001 |
| From: Thierry Reding <treding@nvidia.com> |
| Date: Thu, 29 Aug 2019 09:29:32 +0200 |
| Subject: [PATCH] driver core: platform: Export platform_get_irq_optional() |
| |
| commit d9430f96c051ede4e4a3d5a20e68518181e9cd3c upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/base/platform.c b/drivers/base/platform.c |
| index 53fdc3b1e6f9..16f49b75321a 100644 |
| --- a/drivers/base/platform.c |
| +++ b/drivers/base/platform.c |
| @@ -192,6 +192,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 |
| -- |
| 2.7.4 |
| |