Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/smc/if_smc_fdt.c
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | smc_fdt_probe(device_t dev) | ||||
} | } | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
static int | static int | ||||
smc_fdt_attach(device_t dev) | smc_fdt_attach(device_t dev) | ||||
{ | { | ||||
int err; | |||||
struct smc_softc *sc; | |||||
sc = device_get_softc(dev); | return smc_attach(dev); | ||||
err = smc_attach(dev); | |||||
if (err) { | |||||
return (err); | |||||
} | |||||
return (0); | |||||
} | } | ||||
static int | static int | ||||
smc_fdt_detach(device_t dev) | smc_fdt_detach(device_t dev) | ||||
{ | { | ||||
smc_detach(dev); | smc_detach(dev); | ||||
Show All 30 Lines |