|
@@ -414,7 +414,7 @@ static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwno
|
|
|
|
|
|
static inline bool is_acpi_data_node(struct fwnode_handle *fwnode)
|
|
static inline bool is_acpi_data_node(struct fwnode_handle *fwnode)
|
|
{
|
|
{
|
|
- return fwnode && fwnode->type == FWNODE_ACPI_DATA;
|
|
|
|
|
|
+ return !IS_ERR_OR_NULL(fwnode) && fwnode->type == FWNODE_ACPI_DATA;
|
|
}
|
|
}
|
|
|
|
|
|
static inline struct acpi_data_node *to_acpi_data_node(struct fwnode_handle *fwnode)
|
|
static inline struct acpi_data_node *to_acpi_data_node(struct fwnode_handle *fwnode)
|