mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[S390] Add MODALIAS= to the uevent for the ap bus.
Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
520a4e3728
commit
66a4263b99
1 changed files with 9 additions and 1 deletions
|
|
@ -431,7 +431,15 @@ static int ap_uevent (struct device *dev, char **envp, int num_envp,
|
|||
ap_dev->device_type);
|
||||
if (buffer_size - length <= 0)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue