summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2024-09-22 18:19:40 +0000
committerHauke Mehrtens2024-10-03 15:16:50 +0000
commit8c36040f04d1c743c72941d5ee651fbb04afd09f (patch)
treeae959d24918d90c1538c76b41b6d0efb2980ae3a
parentdedeb28755d6a9eb00d63e60f82e4334be09b9e4 (diff)
downloadopenwrt-8c36040f04d1c743c72941d5ee651fbb04afd09f.tar.gz
ath79: rb91x-key: replace fwnode with pdev
There's no specific fwnode handling here. Simpler to just use pdev. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16506 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c b/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c
index 92e329e435..4b21c93469 100644
--- a/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c
+++ b/target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c
@@ -144,7 +144,6 @@ static int gpio_rb91x_key_probe(struct platform_device *pdev)
struct gpio_rb91x_key *drvdata;
struct gpio_chip *gc;
struct device *dev = &pdev->dev;
- struct fwnode_handle *fwnode = dev->fwnode;
drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL);
if (!drvdata)
@@ -159,6 +158,7 @@ static int gpio_rb91x_key_probe(struct platform_device *pdev)
gc = &drvdata->gc;
gc->label = GPIO_RB91X_KEY_DRIVER_NAME;
+ gc->parent = dev;
gc->can_sleep = 1;
gc->base = -1;
gc->ngpio = GPIO_RB91X_KEY_NGPIOS;
@@ -166,7 +166,6 @@ static int gpio_rb91x_key_probe(struct platform_device *pdev)
gc->set = gpio_rb91x_key_set;
gc->direction_output = gpio_rb91x_key_direction_output;
gc->direction_input = gpio_rb91x_key_direction_input;
- gc->fwnode = fwnode;
platform_set_drvdata(pdev, drvdata);