microchip: lan865x: Fix module autoloading
authorStefan Wahren <wahrenst@gmx.net>
Wed, 27 Aug 2025 11:53:40 +0000 (13:53 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:42:07 +0000 (19:42 -0700)
commitc7217963eb779be0a7627dd2121152fa6786ecf7
tree51cfd89dc9546525baacefbb77ba5fd6c33d1d84
parentb3852ae3105ec1048535707545d23c1e519c190f
microchip: lan865x: Fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from spi_device_id table. While at this, fix
the misleading variable name (spidev is unrelated to this driver).

Fixes: 5cd2340cb6a3 ("microchip: lan865x: add driver support for Microchip's LAN865X MAC-PHY")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Cc: stable@kernel.org
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250827115341.34608-3-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan865x/lan865x.c