Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[sfrench/cifs-2.6.git] / arch / powerpc / sysdev / fsl_pmc.c
index a7635a993dca545c144c3183201337f89997eaa1..9082eb921ad995f7caac8752d00f9dc91cf48381 100644 (file)
@@ -60,7 +60,7 @@ static struct platform_suspend_ops pmc_suspend_ops = {
 
 static int pmc_probe(struct of_device *ofdev, const struct of_device_id *id)
 {
-       pmc_regs = of_iomap(ofdev->node, 0);
+       pmc_regs = of_iomap(ofdev->dev.of_node, 0);
        if (!pmc_regs)
                return -ENOMEM;
 
@@ -76,8 +76,11 @@ static const struct of_device_id pmc_ids[] = {
 };
 
 static struct of_platform_driver pmc_driver = {
-       .driver.name = "fsl-pmc",
-       .match_table = pmc_ids,
+       .driver = {
+               .name = "fsl-pmc",
+               .owner = THIS_MODULE,
+               .of_match_table = pmc_ids,
+       },
        .probe = pmc_probe,
 };