gpio: Unconditionally assign .request()/.free()
[linux-2.6-microblaze.git] / drivers / gpio / gpio-davinci.c
index e0b0256..085b874 100644 (file)
@@ -259,11 +259,8 @@ static int davinci_gpio_probe(struct platform_device *pdev)
        chips->chip.of_gpio_n_cells = 2;
        chips->chip.parent = dev;
        chips->chip.of_node = dev->of_node;
-
-       if (of_property_read_bool(dev->of_node, "gpio-ranges")) {
-               chips->chip.request = gpiochip_generic_request;
-               chips->chip.free = gpiochip_generic_free;
-       }
+       chips->chip.request = gpiochip_generic_request;
+       chips->chip.free = gpiochip_generic_free;
 #endif
        spin_lock_init(&chips->lock);