device: only define/initialize metadata for DT devices
Check if node identifier is valid to define and initialize device
metadata. Without this patch, "software devices", ie, DEVICE_DEFINE,
would fail to compile when enabling the device metadata feature.
Signed-off-by:
Gerard Marull-Paretas <gerard@teslabs.com>
Loading
Please sign in to comment