diff options
| author | Hal Feng <[email protected]> | 2025-01-16 11:45:34 +0800 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2025-02-03 11:33:04 +0800 |
| commit | b6d150b9496fc42a2c88515fa14426ac892c3500 (patch) | |
| tree | 0620114cd6cabd6252d2d0486d6b4df9b7c08f5b | |
| parent | 2b1c8d3b2da46ce0f7108f279f04bc66f1d8d09a (diff) | |
pinctrl: starfive: Correct driver declaration for starfive_gpio
Use the driver macros so that the driver appears in the
linker list.
Reported-by: Simon Glass <[email protected]>
Fixes: 732f01aabf53 ("pinctrl: starfive: Add StarFive JH7110 driver")
Signed-off-by: Hal Feng <[email protected]>
Reviewed-by: Anand Moon <[email protected]>
| -rw-r--r-- | drivers/pinctrl/starfive/pinctrl-starfive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 95b1a752de2..1b942e6f045 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -348,7 +348,7 @@ static const struct dm_gpio_ops starfive_gpio_ops = { .set_value = starfive_gpio_set_value, }; -static struct driver starfive_gpio_driver = { +U_BOOT_DRIVER(starfive_gpio) = { .name = "starfive_gpio", .id = UCLASS_GPIO, .probe = starfive_gpio_probe, @@ -367,7 +367,7 @@ static int starfive_gpiochip_register(struct udevice *parent) return -ENOENT; node = dev_ofnode(parent); - ret = device_bind_with_driver_data(parent, &starfive_gpio_driver, + ret = device_bind_with_driver_data(parent, DM_DRIVER_REF(starfive_gpio), "starfive_gpio", 0, node, &dev); return (ret == 0) ? 0 : ret; |
