[patch 11/34] cio: Fix device attributes for early devices.

Martin Schwidefsky
2007-10-04T11:31:57Z

[-- Attachment #1: 011-cio-early-attributes.diff --]
[-- Type: text/plain, Size: 874 bytes --]

From: Cornelia Huck <cornelia.huck@de.ibm.com>

Don't forget to set dev->groups for early ccw devices like the
console device so the default attributes are created.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---

drivers/s390/cio/device.c | 1 +
1 file changed, 1 insertion(+)

Index: quilt-2.6/drivers/s390/cio/device.c
===================================================================
--- quilt-2.6.orig/drivers/s390/cio/device.c
+++ quilt-2.6/drivers/s390/cio/device.c
@@ -1123,6 +1123,7 @@ io_subchannel_probe (struct subchannel *
* device, e.g. the console.
*/
cdev = sch->dev.driver_data;
+ cdev->dev.groups = ccwdev_attr_groups;
device_initialize(&cdev->dev);
ccw_device_register(cdev);
/*