diff options
author | Lee Jones <lee.jones@linaro.org> | 2017-02-20 23:13:59 +0530 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-03-31 10:25:18 +0200 |
commit | 8dd025ef21c4136f4b6bf1e4fbcf87616541e2bc (patch) | |
tree | cef2a2b08c870eeecc5c9bd89c011ddc22a0c2f4 /drivers | |
parent | 03b103d45f148f8d254bba76befbe49c5b0311e1 (diff) |
drivers/base: fix compiler warning in SoC export driver - idr should be ida
This fixes:
note: expected ‘struct ida *’ but argument is of type ‘struct idr *’
warning: passing argument 1 of ‘ida_pre_get’ from incompatible pointer type
Reported-by: Arnd Bergman <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3a4ffe930a2d2dad07604fe74d21b878decc6461)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 05f150382da8..e57aec13a1b5 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -15,7 +15,7 @@ #include <linux/sys_soc.h> #include <linux/err.h> -static DEFINE_IDR(soc_ida); +static DEFINE_IDA(soc_ida); static DEFINE_SPINLOCK(soc_lock); static ssize_t soc_info_get(struct device *dev, |