diff options
Diffstat (limited to 'drivers/gpio/gpio-mpc8xxx.c')
-rw-r--r-- | drivers/gpio/gpio-mpc8xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index d48a8aa7fb..b41a11aac2 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -44,8 +44,8 @@ static int mpc8xxx_probe(struct device_d *dev) mpc8xxx_gc = xzalloc(sizeof(*mpc8xxx_gc)); - if (dev->device_node) { - np = dev->device_node; + if (dev->of_node) { + np = dev->of_node; } else { dev_err(dev, "no device_node\n"); return -ENODEV; |