|
@@ -394,13 +394,13 @@ struct acpi_data_node {
|
|
|
|
|
|
static inline bool is_acpi_node(struct fwnode_handle *fwnode)
|
|
|
{
|
|
|
- return fwnode && (fwnode->type == FWNODE_ACPI
|
|
|
+ return !IS_ERR_OR_NULL(fwnode) && (fwnode->type == FWNODE_ACPI
|
|
|
|| fwnode->type == FWNODE_ACPI_DATA);
|
|
|
}
|
|
|
|
|
|
static inline bool is_acpi_device_node(struct fwnode_handle *fwnode)
|
|
|
{
|
|
|
- return fwnode && fwnode->type == FWNODE_ACPI;
|
|
|
+ return !IS_ERR_OR_NULL(fwnode) && fwnode->type == FWNODE_ACPI;
|
|
|
}
|
|
|
|
|
|
static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwnode)
|