summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndrei Coardos <aboutphysycs@gmail.com>2023-07-19 01:30:54 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-07-19 14:26:07 +0300
commitec72293cc2099859f79485861fbced41ae3fde60 (patch)
treea13f1c87d7d6863b5888f33d0166e03f4135bcb2 /drivers
parentc9ab610e5cd98f7fe0213b382870437368f11457 (diff)
downloadlinux-ec72293cc2099859f79485861fbced41ae3fde60.tar.xz
gpio: bcm-kona: remove unneeded platform_set_drvdata() call
The platform_set_drvdata() call was never used, ever since the driver was originally added. It looks like this copy+paste left-over. Possibly the author copied from a driver that had this line, but also had a remove hook. Reviewed-by: Alexandru Ardelean <alex@shruggie.ro> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-bcm-kona.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c
index c977144eff10..f67c0f76a196 100644
--- a/drivers/gpio/gpio-bcm-kona.c
+++ b/drivers/gpio/gpio-bcm-kona.c
@@ -592,7 +592,6 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
return -ENOMEM;
kona_gpio->pdev = pdev;
- platform_set_drvdata(pdev, kona_gpio);
chip->parent = dev;
chip->ngpio = kona_gpio->num_bank * GPIO_PER_BANK;