This patch adds support for the Western Digital's
MyBook Live memory-mapped GPIO controllers.
The GPIOs will be supported by the generic driver
for memory-mapped GPIO controllers.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
 
 #ifdef CONFIG_OF
 static const struct of_device_id bgpio_of_match[] = {
+       { .compatible = "wd,mbl-gpio" },
        { }
 };
 MODULE_DEVICE_TABLE(of, bgpio_of_match);
 
        pdata->base = -1;
 
+       if (of_property_read_bool(pdev->dev.of_node, "no-output"))
+               *flags |= BGPIOF_NO_OUTPUT;
+
        return pdata;
 }
 #else