Commit 65d65261 authored by Guido Gunther's avatar Guido Gunther

rfkill: rfkill-hks: Use devm_fwnode_get_gpiod_from_child

devm_fwnode_gpiod_get does not exist in 5.3. We keep this as a separate
patch so the code stays close to 5.6 otherwise.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 9f3364fe
Pipeline #53236 passed with stage
in 41 minutes and 37 seconds
......@@ -135,8 +135,8 @@ static int rfkill_hks_setup_rfkill(struct platform_device *pdev,
spin_lock_init(&sdata->lock);
sdata->dev = dev;
sdata->gpiod = devm_fwnode_gpiod_get(dev, child,
NULL, GPIOD_IN, desc);
sdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child,
GPIOD_IN, desc);
if (IS_ERR(sdata->gpiod)) {
ret = PTR_ERR(sdata->gpiod);
if (ret != -EPROBE_DEFER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment