aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/parisc/lba_pci.c')
-rw-r--r--drivers/parisc/lba_pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
index 42844c2bc065..d0c2759076a2 100644
--- a/drivers/parisc/lba_pci.c
+++ b/drivers/parisc/lba_pci.c
@@ -111,8 +111,10 @@ static u32 lba_t32;
111 111
112 112
113/* Looks nice and keeps the compiler happy */ 113/* Looks nice and keeps the compiler happy */
114#define LBA_DEV(d) ((struct lba_device *) (d)) 114#define LBA_DEV(d) ({ \
115 115 void *__pdata = d; \
116 BUG_ON(!__pdata); \
117 (struct lba_device *)__pdata; })
116 118
117/* 119/*
118** Only allow 8 subsidiary busses per LBA 120** Only allow 8 subsidiary busses per LBA