Message ID | 20220118173404.1891800-1-robh@kernel.org |
---|---|
State | Accepted |
Commit | 9b22c17a3cc5f61b195da624cbb48634b4e42055 |
Headers | show |
Series | of: Check 'of_node_reused' flag on of_match_device() | expand |
diff --git a/drivers/of/device.c b/drivers/of/device.c index b0800c260f64..874f031442dc 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -28,7 +28,7 @@ const struct of_device_id *of_match_device(const struct of_device_id *matches, const struct device *dev) { - if ((!matches) || (!dev->of_node)) + if (!matches || !dev->of_node || dev->of_node_reused) return NULL; return of_match_node(matches, dev->of_node); }