Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[muen/linux.git] / drivers / firmware / arm_scmi / driver.c
index e996395af5f264c24a05b9661b1a481e35126f60..8f952f2f1a29203f8b7729cbfd10aafeba3cd9f6 100644 (file)
@@ -776,6 +776,7 @@ scmi_create_protocol_device(struct device_node *np, struct scmi_info *info,
        if (scmi_mbox_chan_setup(info, &sdev->dev, prot_id)) {
                dev_err(&sdev->dev, "failed to setup transport\n");
                scmi_device_destroy(sdev);
+               return;
        }
 
        /* setup handle now as the transport is ready */