of: Always use 'struct device.of_node' to get device node pointer.
[deliverable/linux.git] / sound / soc / fsl / mpc5200_dma.c
index 30ed568afb2ef5c24316e1fe1ae24c34a795adac..1d4e7164e80af1c4dfd98c057e42b88f52e448f1 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/module.h>
 #include <linux/of_device.h>
+#include <linux/slab.h>
 
 #include <sound/soc.h>
 
@@ -379,8 +380,8 @@ int mpc5200_audio_dma_create(struct of_device *op)
        int ret;
 
        /* Fetch the registers and IRQ of the PSC */
-       irq = irq_of_parse_and_map(op->node, 0);
-       if (of_address_to_resource(op->node, 0, &res)) {
+       irq = irq_of_parse_and_map(op->dev.of_node, 0);
+       if (of_address_to_resource(op->dev.of_node, 0, &res)) {
                dev_err(&op->dev, "Missing reg property\n");
                return -ENODEV;
        }
@@ -398,7 +399,7 @@ int mpc5200_audio_dma_create(struct of_device *op)
        }
 
        /* Get the PSC ID */
-       prop = of_get_property(op->node, "cell-index", &size);
+       prop = of_get_property(op->dev.of_node, "cell-index", &size);
        if (!prop || size < sizeof *prop) {
                ret = -ENODEV;
                goto out_free;
This page took 0.024356 seconds and 5 git commands to generate.