From 70d0f72bf242571e784feb6cb29f03b514dd8416 Mon Sep 17 00:00:00 2001 From: tnn Date: Mon, 5 Aug 2019 23:42:48 +0000 Subject: spi: make the "slave" config(5) locator optional needed to be able to support FDT direct attachment of SPI slaves --- sys/dev/spi/files.spi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/spi/files.spi b/sys/dev/spi/files.spi index e6bdcf60a91..db752d55ae8 100644 --- a/sys/dev/spi/files.spi +++ b/sys/dev/spi/files.spi @@ -1,8 +1,8 @@ -# $NetBSD: files.spi,v 1.5 2015/08/18 15:54:20 phx Exp $ +# $NetBSD: files.spi,v 1.6 2019/08/05 23:42:48 tnn Exp $ define spibus { } -device spi { slave } +device spi { [slave = -1] } attach spi at spibus file dev/spi/spi.c spi | spibus -- cgit