Merge tag 'mailbox-v6.6' of git://git.linaro.org/landing-teams/working/fujitsu/integr...
[platform/kernel/linux-starfive.git] / drivers / fsi / fsi-master-gpio.c
index 7d5f29b..ed03da4 100644 (file)
@@ -761,7 +761,7 @@ static DEVICE_ATTR(external_mode, 0664,
 
 static void fsi_master_gpio_release(struct device *dev)
 {
-       struct fsi_master_gpio *master = to_fsi_master_gpio(dev_to_fsi_master(dev));
+       struct fsi_master_gpio *master = to_fsi_master_gpio(to_fsi_master(dev));
 
        of_node_put(dev_of_node(master->dev));