]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mfd/htc-egpio.c
mfd: support tmiofb cell on tc6393xb
[linux-2.6-omap-h63xx.git] / drivers / mfd / htc-egpio.c
index 8872cc0775190c296ab63bb67160b03f99cb3723..50dff6e0088d919fae79f7769f412dbf5cc297ed 100644 (file)
@@ -289,7 +289,7 @@ static int __init egpio_probe(struct platform_device *pdev)
        ei->base_addr = ioremap_nocache(res->start, res->end - res->start);
        if (!ei->base_addr)
                goto fail;
-       pr_debug("EGPIO phys=%08x virt=%p\n", res->start, ei->base_addr);
+       pr_debug("EGPIO phys=%08x virt=%p\n", (u32)res->start, ei->base_addr);
 
        if ((pdata->bus_width != 16) && (pdata->bus_width != 32))
                goto fail;
@@ -318,6 +318,8 @@ static int __init egpio_probe(struct platform_device *pdev)
                ei->chip[i].dev = &(pdev->dev);
                chip = &(ei->chip[i].chip);
                chip->label           = "htc-egpio";
+               chip->dev             = &pdev->dev;
+               chip->owner           = THIS_MODULE;
                chip->get             = egpio_get;
                chip->set             = egpio_set;
                chip->direction_input = egpio_direction_input;