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:
Bart Van Assche
2009-06-14 07:45:12 +00:00
parent 5c4a41b656
commit 010750bf7c
2 changed files with 9 additions and 0 deletions

View File

@@ -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)

View File

@@ -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;
};