hwmon: (oxp-sensors) Move board detection to the init function
Move detection logic to the start of init() function so we won't instantiate the driver if the board is not compatible. Signed-off-by:Joaquín Ignacio Aramendía <samsagax@gmail.com> Reviewed-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20230717222526.229984-3-samsagax@gmail.comSigned-off-by:
Guenter Roeck <linux@roeck-us.net>
Showing
Please register or sign in to comment