mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
2ab1891640
Commit723de0f917
("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:723de0f917
("staging: most: remove device from interface structure") Acked-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Link: https://lore.kernel.org/r/20211011061117.21435-1-nikita.yoush@cogentembedded.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 lines
364 B
C
19 lines
364 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* sysfs.h - MediaLB sysfs information
|
|
*
|
|
* Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
|
|
*/
|
|
|
|
/* Author: Andrey Shvetsov <andrey.shvetsov@k2l.de> */
|
|
|
|
#ifndef DIM2_SYSFS_H
|
|
#define DIM2_SYSFS_H
|
|
|
|
#include <linux/kobject.h>
|
|
|
|
struct medialb_bus {
|
|
struct kobject kobj_group;
|
|
};
|
|
|
|
#endif /* DIM2_SYSFS_H */
|