diff options
| author | tnn <tnn@NetBSD.org> | 2019-08-05 23:42:48 +0000 |
|---|---|---|
| committer | tnn <tnn@NetBSD.org> | 2019-08-05 23:42:48 +0000 |
| commit | 70d0f72bf242571e784feb6cb29f03b514dd8416 (patch) | |
| tree | f243b70693774b4b36212eca52b9b7ddb7848098 /sys/dev/spi | |
| parent | b2619e912c6acaec039011981d77018dc38ff63b (diff) | |
spi: make the "slave" config(5) locator optional
needed to be able to support FDT direct attachment of SPI slaves
Diffstat (limited to 'sys/dev/spi')
| -rw-r--r-- | sys/dev/spi/files.spi | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
