brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0060-enc28j60-Add-device-tree-compatible-string-and-an-ov.patch
1 From 9864dd975cde0ae4145aa12bf262c5cecb9c9c42 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 060/222] enc28j60: Add device tree compatible string and an
5  overlay
6
7 ---
8  drivers/net/ethernet/microchip/enc28j60.c | 11 +++++++++++
9  1 file changed, 11 insertions(+)
10
11 --- a/drivers/net/ethernet/microchip/enc28j60.c
12 +++ b/drivers/net/ethernet/microchip/enc28j60.c
13 @@ -1630,10 +1630,21 @@ static int enc28j60_remove(struct spi_de
14         return 0;
15  }
16  
17 +#ifdef CONFIG_OF
18 +static const struct of_device_id enc28j60_of_match[] = {
19 +       { .compatible = "microchip,enc28j60", },
20 +       { /* sentinel */ }
21 +};
22 +MODULE_DEVICE_TABLE(of, enc28j60_of_match);
23 +#endif
24 +
25  static struct spi_driver enc28j60_driver = {
26         .driver = {
27                    .name = DRV_NAME,
28                    .owner = THIS_MODULE,
29 +#ifdef CONFIG_OF
30 +                  .of_match_table = enc28j60_of_match,
31 +#endif
32          },
33         .probe = enc28j60_probe,
34         .remove = enc28j60_remove,