brcm2708: update linux 4.4 patches to latest version
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-4.4 / 0075-enc28j60-Add-device-tree-compatible-string-and-an-ov.patch
1 From 12ad9b7c670220b1b8b80ebf507651d106cb28c0 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/170] 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,