mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
enc28j60: Add device tree compatible string and an overlay
This commit is contained in:
@@ -1630,10 +1630,21 @@ static int enc28j60_remove(struct spi_device *spi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id enc28j60_of_match[] = {
|
||||
{ .compatible = "microchip,enc28j60", },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, enc28j60_of_match);
|
||||
#endif
|
||||
|
||||
static struct spi_driver enc28j60_driver = {
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
#ifdef CONFIG_OF
|
||||
.of_match_table = enc28j60_of_match,
|
||||
#endif
|
||||
},
|
||||
.probe = enc28j60_probe,
|
||||
.remove = enc28j60_remove,
|
||||
|
||||
Reference in New Issue
Block a user