mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 14:36:46 +07:00
Input: gpio_keys_polled - switch to using devm_fwnode_gpiod_get()
devm_fwnode_get_gpiod_from_child() is going away as the name is too unwieldy, let's switch to using the new devm_fwnode_gpiod_get(). Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
2a60f59877
commit
5f92dcee81
@ -300,10 +300,9 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev,
|
||||
NULL, child,
|
||||
GPIOD_IN,
|
||||
button->desc);
|
||||
bdata->gpiod = devm_fwnode_gpiod_get(dev, child,
|
||||
NULL, GPIOD_IN,
|
||||
button->desc);
|
||||
if (IS_ERR(bdata->gpiod)) {
|
||||
error = PTR_ERR(bdata->gpiod);
|
||||
if (error != -EPROBE_DEFER)
|
||||
|
Loading…
Reference in New Issue
Block a user