X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fgpio%2Fjanz-ttl.c;h=2514fb075f4afbdc1bb7a0ad62a9e3dff3bd9994;hp=813ac077e5d7d5b0d25e465c53dcb10a023ef595;hb=95985725367e55642755ca6986d0c930cd3738e2;hpb=38ea6e62d3e59f7e03c6c96301d1cedaab15ce3f diff --git a/drivers/gpio/janz-ttl.c b/drivers/gpio/janz-ttl.c index 813ac077e5d7..2514fb075f4a 100644 --- a/drivers/gpio/janz-ttl.c +++ b/drivers/gpio/janz-ttl.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -149,7 +150,7 @@ static int __devinit ttl_probe(struct platform_device *pdev) struct resource *res; int ret; - pdata = pdev->dev.platform_data; + pdata = mfd_get_data(pdev); if (!pdata) { dev_err(dev, "no platform data\n"); ret = -ENXIO;