]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mfd/ab8500-gpadc.c
Merge branch 'pm-acpi' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[karo-tx-linux.git] / drivers / mfd / ab8500-gpadc.c
index c39fc716e1dcf520592bc866cba0be4e661d0e09..b86fd8e1ec3fbae7c4bf6770c1598a777d657d78 100644 (file)
@@ -584,7 +584,7 @@ static int __devinit ab8500_gpadc_probe(struct platform_device *pdev)
 
        gpadc->irq = platform_get_irq_byname(pdev, "SW_CONV_END");
        if (gpadc->irq < 0) {
-               dev_err(gpadc->dev, "failed to get platform irq-%d\n",
+               dev_err(&pdev->dev, "failed to get platform irq-%d\n",
                        gpadc->irq);
                ret = gpadc->irq;
                goto fail;
@@ -648,12 +648,18 @@ static int __devexit ab8500_gpadc_remove(struct platform_device *pdev)
        return 0;
 }
 
+static const struct of_device_id ab8500_gpadc_match[] = {
+       { .compatible = "stericsson,ab8500-gpadc", },
+       {}
+};
+
 static struct platform_driver ab8500_gpadc_driver = {
        .probe = ab8500_gpadc_probe,
        .remove = __devexit_p(ab8500_gpadc_remove),
        .driver = {
                .name = "ab8500-gpadc",
                .owner = THIS_MODULE,
+               .of_match_table = ab8500_gpadc_match,
        },
 };