diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2021-07-20 09:38:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-20 16:17:06 +0300 |
commit | ae57ea7a19b784e5982ae25bdba3cdf7c98f3067 (patch) | |
tree | 59b8a1f763c6ea3918c91d6deb000243483c3e26 /net/switchdev/switchdev.c | |
parent | a37cfa28ebdc6a2286569ef783c4ba5c719f4902 (diff) | |
download | linux-ae57ea7a19b784e5982ae25bdba3cdf7c98f3067.tar.xz |
s390/qeth: clean up device_type management
qeth uses three device_type structs - a generic one, and one for each
sub-driver (which is used for fixed-layer devices only). Instead of
exporting these device_types back&forth between the driver's modules,
make all the logic self-contained within the sub-drivers.
On disc->setup() they either install their own device_type, or add the
sysfs attributes that are missing in the generic device_type. Later on
disc->remove() these attributes are removed again from any device that
has the generic device_type.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions