xen/arm: Fix dev_is_dt macro definition
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Mon, 4 Oct 2021 14:11:41 +0000 (17:11 +0300)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Tue, 5 Oct 2021 00:53:56 +0000 (17:53 -0700)
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: 6c5d3075d97e ("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>
xen/include/asm-arm/device.h

index 5ecd5e7bd15ee664789bb6359ec41677fee2d791..ebe84ea853cdbaebc70248dfaeb6a06ac3b82c95 100644 (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
 {