aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2009-09-17 13:47:14 -0500
committerJens Axboe <jens.axboe@oracle.com>2009-10-01 21:15:41 +0200
commit617e1344229d22ea9ecb6538e50808541618ed2b (patch)
tree8e6020a20ccb2c74b1547a6563e989be0c0eb133 /drivers/block/cciss.h
parent21d9db0b6231ef908fcdbfacefa392352776857f (diff)
downloadkernel_samsung_tuna-617e1344229d22ea9ecb6538e50808541618ed2b.zip
kernel_samsung_tuna-617e1344229d22ea9ecb6538e50808541618ed2b.tar.gz
kernel_samsung_tuna-617e1344229d22ea9ecb6538e50808541618ed2b.tar.bz2
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.
*/