Commit 66a4263b authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky

[S390] Add MODALIAS= to the uevent for the ap bus.

Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 520a4e37
...@@ -431,7 +431,15 @@ static int ap_uevent (struct device *dev, char **envp, int num_envp, ...@@ -431,7 +431,15 @@ static int ap_uevent (struct device *dev, char **envp, int num_envp,
ap_dev->device_type); ap_dev->device_type);
if (buffer_size - length <= 0) if (buffer_size - length <= 0)
return -ENOMEM; return -ENOMEM;
envp[1] = 0; buffer += length;
buffer_size -= length;
/* Add MODALIAS= */
envp[1] = buffer;
length = scnprintf(buffer, buffer_size, "MODALIAS=ap:t%02X",
ap_dev->device_type);
if (buffer_size - length <= 0)
return -ENOMEM;
envp[2] = NULL;
return 0; return 0;
} }
......
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