aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 86ef3461ec06..a094356020a6 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -408,7 +408,7 @@ static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev,
408 IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING; 408 IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING;
409 409
410 if (!value_sd) { 410 if (!value_sd) {
411 value_sd = sysfs_get_dirent(dev->kobj.sd, NULL, "value"); 411 value_sd = sysfs_get_dirent(dev->kobj.sd, "value");
412 if (!value_sd) { 412 if (!value_sd) {
413 ret = -ENODEV; 413 ret = -ENODEV;
414 goto err_out; 414 goto err_out;