mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
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>
This commit is contained in:
parent
c9ab610e5c
commit
ec72293cc2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user