Skip to contentSkip to conversation

s390: fix class_device_create calls in 3270 the driver.

PATCH New Martin Schwidefsky 1 participant 1 message Nov 17, 2005 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: fix class_device_create calls in 3270 the driver.

From: Martin Schwidefsky <[email protected]>

[patch] s390: fix class_device_create calls in 3270 the driver.

Add the missing NULL argument to the class_device_create calls.

---

 drivers/s390/char/raw3270.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/s390/char/raw3270.c +2 -2
diff -urpN linux-2.6/drivers/s390/char/raw3270.c linux-2.6-patched/drivers/s390/char/raw3270.c
@@ -1179,12 +1179,12 @@ raw3270_create_attributes(struct raw3270
 	//FIXME: check return code
 	sysfs_create_group(&rp->cdev->dev.kobj, &raw3270_attr_group);
 	rp->clttydev =
-		class_device_create(class3270,
+		class_device_create(class3270, NULL,
 				    MKDEV(IBM_TTY3270_MAJOR, rp->minor),
 				    &rp->cdev->dev, "tty%s",
 				    rp->cdev->dev.bus_id);
 	rp->cltubdev =
-		class_device_create(class3270,
+		class_device_create(class3270, NULL,
 				    MKDEV(IBM_FS3270_MAJOR, rp->minor),
 				    &rp->cdev->dev, "tub%s",
 				    rp->cdev->dev.bus_id);