Message ID | 63943de8-198d-32ff-36fe-c3f6c4c10f1d@arm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/base/core.c b/drivers/base/core.c index b2261f92f2f1..895da95f5cb9 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -275,6 +275,9 @@ struct device_link *device_link_add(struct device *consumer, out: device_pm_unlock(); device_links_write_unlock(); + if (!link) + dev_warn(consumer, "Failed to link to supplier %s\n", dev_name(supplier)); + return link;