OpenNetworkLinux
OpenNetworkLinux copied to clipboard
Accton AS4610: let the CPLD driver handle sub devices
Properly let the CPLD driver manage the LED and CPLD platform devices instead of registering them always in their respective modules.
This avoids registering devices on platforms without the CPLD present, introduces proper ordering of registering the platform devices only after the CPLD driver has finished initializing, and simplifies the drivers significantly.
To make this properly work, also fix the module device table for the FAN driver, and add one for the LED driver.