mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
stop mmc in dev_done, releasing ref to the device
This commit is contained in:
parent
8bb88f248f
commit
66ca92689e
@ -1214,6 +1214,8 @@ dev_done(struct dev *d)
|
|||||||
log_puts(": draining\n");
|
log_puts(": draining\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (d->tstate != MMC_STOP)
|
||||||
|
dev_mmcstop(d);
|
||||||
if (d->hold)
|
if (d->hold)
|
||||||
dev_unref(d);
|
dev_unref(d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user