drivers/base: fix compiler warning in SoC export driver - idr should be ida
authorLee Jones <lee.jones@linaro.org>
Mon, 20 Feb 2017 17:43:59 +0000 (23:13 +0530)
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 31 Mar 2017 08:25:18 +0000 (10:25 +0200)
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)

drivers/base/soc.c

index 05f150382da86fa70dd161067b26bdf59d33fc94..e57aec13a1b5f997d21e5b14720be5d8e187153b 100644 (file)
@@ -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,