xen/arm: Fix dev_is_dt macro definition

This macro is not currently used, but still has an error in it:
a missing parenthesis. Fix this, so the macro is properly defined.

Fixes: 6c5d3075d9 ("xen/arm: Introduce a generic way to describe device")

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
This commit is contained in:
Oleksandr Andrushchenko authored and Stefano Stabellini committed 2021-10-04 17:53:56 -07:00
1 parent efbd25c4f2
commit d6bdad32cb
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ typedef struct device device_t;
/* TODO: Correctly implement dev_is_pci when PCI is supported on ARM */
#define dev_is_pci(dev) ((void)(dev), 0)
#define dev_is_dt(dev) ((dev->type == DEV_DT)
#define dev_is_dt(dev) ((dev)->type == DEV_DT)
enum device_class
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.