Skip to content

Commit 3a4ffe9

Browse files
Lee Jonesgregkh
authored andcommitted
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>
1 parent 33cb4f3 commit 3a4ffe9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/soc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/sys_soc.h>
1616
#include <linux/err.h>
1717

18-
static DEFINE_IDR(soc_ida);
18+
static DEFINE_IDA(soc_ida);
1919
static DEFINE_SPINLOCK(soc_lock);
2020

2121
static ssize_t soc_info_get(struct device *dev,

0 commit comments

Comments
 (0)