From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQspl-0004mg-7w for barebox@lists.infradead.org; Mon, 08 Sep 2014 06:53:55 +0000 Received: by mail-la0-f50.google.com with SMTP id ty20so2025886lab.23 for ; Sun, 07 Sep 2014 23:53:28 -0700 (PDT) From: Antony Pavlov Date: Mon, 8 Sep 2014 10:53:04 +0400 Message-Id: <1410159189-17328-3-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1410159189-17328-1-git-send-email-antonynpavlov@gmail.com> References: <1410159189-17328-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 2/7] net: ethoc: add device tree support To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov Cc: Franck Jullien --- drivers/net/ethoc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 679e1e5..35d7d46 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -565,8 +565,14 @@ static int ethoc_probe(struct device_d *dev) return 0; } +static struct of_device_id ethoc_dt_ids[] = { + { .compatible = "opencores,ethoc", }, + { } +}; + static struct driver_d ethoc_driver = { .name = "ethoc", .probe = ethoc_probe, + .of_compatible = DRV_OF_COMPAT(ethoc_dt_ids), }; device_platform_driver(ethoc_driver); -- 2.1.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox