Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
e85dd53a 9804456e

+1 -1
+1 -1
drivers/gpio/gpio-brcmstb.c
··· 704 704 } 705 705 706 706 gc->owner = THIS_MODULE; 707 - gc->label = devm_kasprintf(dev, GFP_KERNEL, "%pOF", dev->of_node); 707 + gc->label = devm_kasprintf(dev, GFP_KERNEL, "%pOF", np); 708 708 if (!gc->label) { 709 709 err = -ENOMEM; 710 710 goto fail;