#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 {
.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];
}
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);