diff options
Diffstat (limited to 'arch/blackfin/kernel/bfin_gpio.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index a808baf5d309..4aa3c053297f 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -256,8 +256,7 @@ static int cmp_label(unsigned short ident, const char *label) | |||
256 | } | 256 | } |
257 | 257 | ||
258 | if (label) | 258 | if (label) |
259 | return strncmp(str_ident[ident].name, | 259 | return strcmp(str_ident[ident].name, label); |
260 | label, strlen(label)); | ||
261 | else | 260 | else |
262 | return -EINVAL; | 261 | return -EINVAL; |
263 | } | 262 | } |