Message ID | 20250410-fix_swnode-v1-1-081c95cf7cf9@quicinc.com |
---|---|
State | New |
Headers | show |
Series | software node: bug fixes | expand |
diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c index b1726a3515f6fbe13c2186af1f74479263798e42..67040fff99b02c43999b175c2ba7e6d04322a446 100644 --- a/drivers/base/swnode.c +++ b/drivers/base/swnode.c @@ -933,6 +933,7 @@ fwnode_create_software_node(const struct property_entry *properties, struct software_node *node; struct swnode *p; + /* Only cast away the const by ERR_CAST() */ if (IS_ERR(parent)) return ERR_CAST(parent);