Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/intel/spi.c
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | intelspi_transfer(device_t dev, device_t child, struct spi_command *cmd) | ||||
return (err); | return (err); | ||||
} | } | ||||
static int | static int | ||||
intelspi_probe(device_t dev) | intelspi_probe(device_t dev) | ||||
{ | { | ||||
static char *gpio_ids[] = { "80860F0E", NULL }; | static char *gpio_ids[] = { "80860F0E", NULL }; | ||||
int rv; | |||||
if (acpi_disabled("spi") || | if (acpi_disabled("spi") ) | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids) == NULL) | |||||
return (ENXIO); | return (ENXIO); | ||||
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids, NULL); | |||||
if (rv <= 0) | |||||
jhb: Space after 'if' | |||||
device_set_desc(dev, "Intel SPI Controller"); | device_set_desc(dev, "Intel SPI Controller"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
static int | static int | ||||
intelspi_attach(device_t dev) | intelspi_attach(device_t dev) | ||||
{ | { | ||||
struct intelspi_softc *sc; | struct intelspi_softc *sc; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Space after 'if'