gpio: eic-sprd: use generic device_get_match_data()
Subsystems (2)
PATCH 1/1 gpio: eic-sprd: use generic device_get_match_data()
From: Bartosz Golaszewski <[email protected]>
There's no need to use the OF-specific variant to get the match data. Switch to using device_get_match_data() instead.
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpio-eic-sprd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/gpio-eic-sprd.c +2 -2
@@ -10,8 +10,8 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/notifier.h> -#include <linux/of.h> #include <linux/platform_device.h> +#include <linux/property.h> #include <linux/spinlock.h> /* EIC registers definition */
@@ -617,7 +617,7 @@ static int sprd_eic_probe(struct platform_device *pdev)u16 num_banks =0 ;int ret, i; - pdata =of_device_get_match_data (dev); + pdata =device_get_match_data (dev);if (!pdata) {dev_err (dev,"No matching driver data found.\n" );return -EINVAL ;
Signature · 1 line
2.43.0
Quoted 6 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
There's no need to use the OF-specific variant to get the match data. Switch to using
device_get_match_data()instead.Signed-off-by Bartosz Golaszewski <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 4 lines · Bartosz Golaszewski
There's no need to use the OF-specific variant to get the match data. Switch to using
device_get_match_data()instead.
Applied, thanks!
[1/1] gpio: eic-sprd: use generic device_get_match_data()
commit: 1396470c11d4f30b4d4f444adf353848b48c74da
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>