Commit b1969fa4 authored by Cornelia Huck's avatar Cornelia Huck Committed by Linus Torvalds
Browse files

[PATCH] s390: Fix modalias for ccw devices

Fix modalias for ccw devices: cu_type should be in capitals as well.
Signed-off-by: default avatarCornelia Huck <>
Signed-off-by: default avatarHeiko Carstens <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 54dfe5dd
...@@ -254,7 +254,7 @@ modalias_show (struct device *dev, struct device_attribute *attr, char *buf) ...@@ -254,7 +254,7 @@ modalias_show (struct device *dev, struct device_attribute *attr, char *buf)
struct ccw_device_id *id = &(cdev->id); struct ccw_device_id *id = &(cdev->id);
int ret; int ret;
ret = sprintf(buf, "ccw:t%04Xm%02x", ret = sprintf(buf, "ccw:t%04Xm%02X",
id->cu_type, id->cu_model); id->cu_type, id->cu_model);
if (id->dev_type != 0) if (id->dev_type != 0)
ret += sprintf(buf + ret, "dt%04Xdm%02X\n", ret += sprintf(buf + ret, "dt%04Xdm%02X\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment