From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753157AbbHTHLI (ORCPT ); Thu, 20 Aug 2015 03:11:08 -0400 Received: from lists.s-osg.org ([54.187.51.154]:58754 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775AbbHTHIZ (ORCPT ); Thu, 20 Aug 2015 03:08:25 -0400 From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Randy Dunlap , Masanari Iida , linux-iio@vger.kernel.org, Jiri Kosina , Peter Meerwald , Lars-Peter Clausen , Jonathan Cameron , Hartmut Knaack Subject: [PATCH 11/18] iio: adc: max1027: Set struct spi_driver .of_match_table Date: Thu, 20 Aug 2015 09:07:24 +0200 Message-Id: <1440054451-1223-12-git-send-email-javier@osg.samsung.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1440054451-1223-1-git-send-email-javier@osg.samsung.com> References: <1440054451-1223-1-git-send-email-javier@osg.samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver has an OF id table but the .of_match_table is not set so the SPI core can't do an OF style match and the table was unused. Signed-off-by: Javier Martinez Canillas --- drivers/iio/adc/max1027.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index 44bf815adb6c..54a8302aaace 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -508,6 +508,7 @@ static int max1027_remove(struct spi_device *spi) static struct spi_driver max1027_driver = { .driver = { .name = "max1027", + .of_match_table = of_match_ptr(max1027_adc_dt_ids), .owner = THIS_MODULE, }, .probe = max1027_probe, -- 2.4.3