summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-13 10:23:40 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-18 10:47:48 +0300
commitdc850faa28ee0ac18e5e192526cdfa1da0b9d951 (patch)
tree7315949eb116f9a443f1e0cb530b511b7ef5d05b /drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
parent8c85a102fc4e5c0c942c10677fa43f7a19baa92f (diff)
downloadlinux-dc850faa28ee0ac18e5e192526cdfa1da0b9d951.tar.xz
hte: tegra194: don't access struct gpio_chip
Using struct gpio_chip is not safe as it will disappear if the underlying driver is unbound for any reason. Switch to using reference counted struct gpio_device and its dedicated accessors. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Tested-by: Dipen Patel <dipenp@nvidia.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> [andy: used gpio_device_find_by_fwnode()] Reviewed-by: Dipen Patel <dipenp@nvidia.com> Link: https://lore.kernel.org/r/20231010151709.4104747-3-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c')
0 files changed, 0 insertions, 0 deletions