diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-03-06 18:22:58 +0100 |
|---|---|---|
| committer | Philipp Zabel <p.zabel@pengutronix.de> | 2026-03-09 10:20:04 +0100 |
| commit | faaad5006e5835c3b9228906232fc6b17b01512b (patch) | |
| tree | 263551796a9d39b297622e837e72213b558b05cd /drivers/reset | |
| parent | 9035073d0ef1de813c6335239250248bfe0a64aa (diff) | |
| download | linux-next-faaad5006e5835c3b9228906232fc6b17b01512b.tar.gz linux-next-faaad5006e5835c3b9228906232fc6b17b01512b.zip | |
reset: gpio: make the driver fwnode-agnostic
With reset core now being able to work with firmware nodes, we can make
reset-gpio node-agnostic and drop any OF dependencies.
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
| -rw-r--r-- | drivers/reset/reset-gpio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/reset/reset-gpio.c b/drivers/reset/reset-gpio.c index 5044f809d0e5..26aa2c3a2e68 100644 --- a/drivers/reset/reset-gpio.c +++ b/drivers/reset/reset-gpio.c @@ -4,7 +4,7 @@ #include <linux/gpio/consumer.h> #include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of.h> +#include <linux/property.h> #include <linux/reset-controller.h> struct reset_gpio_priv { @@ -46,8 +46,8 @@ static const struct reset_control_ops reset_gpio_ops = { .status = reset_gpio_status, }; -static int reset_gpio_of_xlate(struct reset_controller_dev *rcdev, - const struct of_phandle_args *reset_spec) +static int reset_gpio_fwnode_xlate(struct reset_controller_dev *rcdev, + const struct fwnode_reference_args *reset_spec) { return reset_spec->args[0]; } @@ -72,8 +72,8 @@ static int reset_gpio_probe(struct auxiliary_device *adev, priv->rc.dev = dev; /* Cells to match GPIO specifier, but it's not really used */ - priv->rc.of_reset_n_cells = 2; - priv->rc.of_xlate = reset_gpio_of_xlate; + priv->rc.fwnode_reset_n_cells = 2; + priv->rc.fwnode_xlate = reset_gpio_fwnode_xlate; priv->rc.nr_resets = 1; return devm_reset_controller_register(dev, &priv->rc); |
