[PATCH 0/2] leds: s2m: wire up missing of_match_table in platform drivers

kr494167@gmail.com posted 2 patches 3 days, 19 hours ago
drivers/leds/flash/leds-s2m-flash.c | 1 +
drivers/leds/rgb/leds-s2m-rgb.c     | 1 +
2 files changed, 2 insertions(+)
[PATCH 0/2] leds: s2m: wire up missing of_match_table in platform drivers
Posted by kr494167@gmail.com 3 days, 19 hours ago
From: surendra <kr494167@gmail.com>

Both the S2M RGB and flash LED platform drivers define an OF match table
and register it with MODULE_DEVICE_TABLE(of, ...) to generate modalias
entries for DT-based module auto-loading, but forget to assign the table
to the platform_driver's .driver.of_match_table field.

The consequence is two-fold:
 - The kernel will never match and probe the driver when a DT node with
   the corresponding compatible string is present.
 - The MODULE_DEVICE_TABLE(of, ...) entries become dead code - uevent
   modalias strings are generated but the driver can never be loaded by
   them.

Both patches wire the existing tables up into the platform_driver struct,
fixing DT-based probing and module auto-loading without any functional
change to the non-DT (platform ID) probing path.

surendra (2):
  leds: rgb: s2m: wire up of_match_table in platform driver
  leds: flash: s2m: wire up of_match_table in platform driver

 drivers/leds/flash/leds-s2m-flash.c | 1 +
 drivers/leds/rgb/leds-s2m-rgb.c     | 1 +
 2 files changed, 2 insertions(+)

-- 
2.55.0