diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-23 15:15:38 +0200 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-12-23 17:08:53 +0100 |
commit | e85dd53a38bc32f411f90bd095b738fee46785f8 (patch) | |
tree | 189fd4671d3b588a3026a33a2a1eb462029cb9b7 /drivers/gpio/gpio-brcmstb.c | |
parent | 9804456e60670cc73f13361a3e628ecdf1bf7ee1 (diff) | |
download | lwn-e85dd53a38bc32f411f90bd095b738fee46785f8.tar.gz lwn-e85dd53a38bc32f411f90bd095b738fee46785f8.zip |
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>
Diffstat (limited to 'drivers/gpio/gpio-brcmstb.c')
-rw-r--r-- | drivers/gpio/gpio-brcmstb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c index 176c264bb959..74ef89248867 100644 --- a/drivers/gpio/gpio-brcmstb.c +++ b/drivers/gpio/gpio-brcmstb.c @@ -704,7 +704,7 @@ static int brcmstb_gpio_probe(struct platform_device *pdev) } 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) { err = -ENOMEM; goto fail; |