diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-01-08 18:26:03 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-01-08 18:26:03 +0000 |
commit | a9121491ccfdec7e1f7058d45bee73d87388f681 (patch) | |
tree | 379fd1718c6531c30ecf122b7b87221c2ef0c003 /firmware | |
parent | 52bb5e1e63bf02bf184204ed974562f25c5bafe2 (diff) |
Add a check to verify ATA driver has been initialised in ata_sleepnow().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 1491d2376e..4e41ef2b1f 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -610,7 +610,7 @@ void ata_sleep(void) void ata_sleepnow(void) { - if (!spinup && !sleeping && !ata_mtx.locked) + if (!spinup && !sleeping && !ata_mtx.locked && initialized) { call_ata_idle_notifys(false); ata_perform_sleep(); |