diff options
| author | Nikita Yushchenko <[email protected]> | 2021-10-11 09:11:18 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-10-13 14:27:54 +0200 |
| commit | 2ab189164056b05474275bb40caa038a37713061 (patch) | |
| tree | 150bdb6d19f26da4d396cefb3ff0d1596d854a92 /tools/perf/scripts/python | |
| parent | 56578ab25a88c7192e25c99f679ccde37edbd59d (diff) | |
staging: most: dim2: do not double-register the same device
Commit 723de0f9171e ("staging: most: remove device from interface
structure") moved registration of driver-provided struct device to
the most subsystem.
Dim2 used to register the same struct device to provide a custom device
attribute. This causes double-registration of the same struct device.
Fix that by moving the custom attribute to driver's dev_groups.
This moves attribute to the platform_device object, which is a better
location for platform-specific attributes anyway.
Fixes: 723de0f9171e ("staging: most: remove device from interface structure")
Acked-by: Christian Gromm <[email protected]>
Signed-off-by: Nikita Yushchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions