mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
Ported to 2.6.30 kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2357,7 +2357,13 @@ static void srpt_add_one(struct ib_device *device)
|
||||
#else
|
||||
sdev->dev.class = &srpt_class;
|
||||
sdev->dev.parent = device->dma_device;
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
|
||||
snprintf(sdev->dev.bus_id, BUS_ID_SIZE, "srpt-%s", device->name);
|
||||
#else
|
||||
snprintf(sdev->init_name, sizeof(sdev->init_name),
|
||||
"srpt-%s", device->name);
|
||||
sdev->dev.init_name = sdev->init_name;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
|
||||
|
||||
@@ -205,6 +205,9 @@ struct srpt_device {
|
||||
#else
|
||||
struct device dev;
|
||||
#endif
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
|
||||
char init_name[20];
|
||||
#endif
|
||||
|
||||
struct scst_tgt *scst_tgt;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user