Commit e85dd53a authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bartosz Golaszewski

gpio: brcmstb: Use local variable to access OF node

We already have a local variable that contains a copy of OF node pointer.
Use it instead of dereferencing it again from struct device.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 9804456e
...@@ -704,7 +704,7 @@ static int brcmstb_gpio_probe(struct platform_device *pdev) ...@@ -704,7 +704,7 @@ static int brcmstb_gpio_probe(struct platform_device *pdev)
} }
gc->owner = THIS_MODULE; gc->owner = THIS_MODULE;
gc->label = devm_kasprintf(dev, GFP_KERNEL, "%pOF", dev->of_node); gc->label = devm_kasprintf(dev, GFP_KERNEL, "%pOF", np);
if (!gc->label) { if (!gc->label) {
err = -ENOMEM; err = -ENOMEM;
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment