aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/freescale/vybrid/vf_sai.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/freescale/vybrid/vf_sai.c')
-rw-r--r--sys/arm/freescale/vybrid/vf_sai.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arm/freescale/vybrid/vf_sai.c b/sys/arm/freescale/vybrid/vf_sai.c
index 6ccfcae2bc2e..d3a3ab93fe80 100644
--- a/sys/arm/freescale/vybrid/vf_sai.c
+++ b/sys/arm/freescale/vybrid/vf_sai.c
@@ -691,11 +691,7 @@ sai_attach(device_t dev)
sc->sr = &rate_map[0];
sc->pos = 0;
- mtx_init(&sc->lock, device_get_nameunit(dev), "sai softc");
- if (sc->lock == NULL) {
- device_printf(dev, "Cant create mtx\n");
- return (ENXIO);
- }
+ mtx_init(&sc->lock, device_get_nameunit(dev), "sai softc", MTX_DEF);
if (bus_alloc_resources(dev, sai_spec, sc->res)) {
device_printf(dev, "could not allocate resources\n");