public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi/spidev: Convert to use unified device property API
@ 2014-12-29  9:41 Mika Westerberg
  2014-12-29 16:03 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Mika Westerberg @ 2014-12-29  9:41 UTC (permalink / raw)
  To: linux-spi
  Cc: Mark Brown, Grant Likely, Rob Herring, Rafael J. Wysocki,
	Mika Westerberg, linux-kernel

This will allow the driver to match using DT compatible property if the
device has ACPI _HID of "PRP0001" and accompanying "compatible" property
listed in _DSD.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/spi/spidev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 6941e04afb8c..f4742fad4307 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -700,7 +700,7 @@ static struct spi_driver spidev_spi_driver = {
 	.driver = {
 		.name =		"spidev",
 		.owner =	THIS_MODULE,
-		.of_match_table = of_match_ptr(spidev_dt_ids),
+		.of_match_table = spidev_dt_ids,
 	},
 	.probe =	spidev_probe,
 	.remove =	spidev_remove,
-- 
2.1.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-30 11:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29  9:41 [PATCH] spi/spidev: Convert to use unified device property API Mika Westerberg
2014-12-29 16:03 ` Mark Brown
2014-12-30  7:37   ` Mika Westerberg
2014-12-30 11:23     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox