From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dp8CQ-0006mu-Jf for barebox@lists.infradead.org; Tue, 05 Sep 2017 07:23:08 +0000 Received: by mail-lf0-x243.google.com with SMTP id c8so1296746lfe.2 for ; Tue, 05 Sep 2017 00:22:46 -0700 (PDT) From: Antony Pavlov Date: Tue, 5 Sep 2017 10:22:37 +0300 Message-Id: <20170905072237.2268-3-antonynpavlov@gmail.com> In-Reply-To: <20170905072237.2268-1-antonynpavlov@gmail.com> References: <20170905072237.2268-1-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 2/2] gpio: gpio-generic: add dt support To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov --- drivers/gpio/gpio-generic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c index 164aaed97a..4d8f14c879 100644 --- a/drivers/gpio/gpio-generic.c +++ b/drivers/gpio/gpio-generic.c @@ -410,9 +410,18 @@ static struct platform_device_id bgpio_id_table[] = { { } }; +static struct of_device_id __maybe_unused bgpio_of_match[] = { + { + .compatible = "wd,mbl-gpio", + }, { + /* sentinel */ + } +}; + static struct driver_d bgpio_driver = { .name = "basic-mmio-gpio", .id_table = bgpio_id_table, + .of_compatible = DRV_OF_COMPAT(bgpio_of_match), .probe = bgpio_dev_probe, .remove = bgpio_dev_remove, }; -- 2.13.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox