Input: gpio_keys - switch to using devm_fwnode_gpiod_get()
[linux-2.6-microblaze.git] / drivers / input / keyboard / gpio_keys.c
index 1373dc5..1f56d53 100644 (file)
@@ -494,10 +494,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev,
        spin_lock_init(&bdata->lock);
 
        if (child) {
-               bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL,
-                                                               child,
-                                                               GPIOD_IN,
-                                                               desc);
+               bdata->gpiod = devm_fwnode_gpiod_get(dev, child,
+                                                    NULL, GPIOD_IN, desc);
                if (IS_ERR(bdata->gpiod)) {
                        error = PTR_ERR(bdata->gpiod);
                        if (error == -ENOENT) {