5dba231e1313f5a352ca487e14e0a4d4f0100e4f
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0075-enc28j60-Add-device-tree-compatible-string-and-an-ov.patch
1 From 5bdfbb8eafe9c92e60031502980207f55c0092ce Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Fri, 27 Feb 2015 15:10:24 +0000
4 Subject: [PATCH 075/127] enc28j60: Add device tree compatible string and an
5  overlay
6
7 ---
8  drivers/net/ethernet/microchip/enc28j60.c | 7 +++++++
9  1 file changed, 7 insertions(+)
10
11 --- a/drivers/net/ethernet/microchip/enc28j60.c
12 +++ b/drivers/net/ethernet/microchip/enc28j60.c
13 @@ -1630,9 +1630,16 @@ static int enc28j60_remove(struct spi_de
14         return 0;
15  }
16  
17 +static const struct of_device_id enc28j60_of_match[] = {
18 +       { .compatible = "microchip,enc28j60", },
19 +       { /* sentinel */ }
20 +};
21 +MODULE_DEVICE_TABLE(of, enc28j60_of_match);
22 +
23  static struct spi_driver enc28j60_driver = {
24         .driver = {
25                    .name = DRV_NAME,
26 +                  .of_match_table = enc28j60_of_match,
27          },
28         .probe = enc28j60_probe,
29         .remove = enc28j60_remove,