summaryrefslogtreecommitdiff
path: root/drivers/block/cciss.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2009-09-17 18:47:14 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2009-10-01 19:15:41 (GMT)
commit617e1344229d22ea9ecb6538e50808541618ed2b (patch)
tree8e6020a20ccb2c74b1547a6563e989be0c0eb133 /drivers/block/cciss.h
parent21d9db0b6231ef908fcdbfacefa392352776857f (diff)
downloadlinux-fsl-qoriq-617e1344229d22ea9ecb6538e50808541618ed2b.tar.xz
cciss: Dynamically allocate struct device for each logical drive as needed.
Dynamically allocate struct device for each logical drive as needed instead of allocating the maximum we would ever need at driver init time. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/cciss.h')
-rw-r--r--drivers/block/cciss.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.h b/drivers/block/cciss.h
index 4fb3639..9679342 100644
--- a/drivers/block/cciss.h
+++ b/drivers/block/cciss.h
@@ -45,7 +45,7 @@ typedef struct _drive_info_struct
* to prevent it from being opened or it's
* queue from being started.
*/
- struct device dev;
+ struct device *dev;
__u8 serial_no[16]; /* from inquiry page 0x83,
* not necc. null terminated.
*/