diff options
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index e85060164203..030b0ea1a1e1 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -501,8 +501,8 @@ static inline int ide_lock_host(struct ide_host *host, ide_hwif_t *hwif) | |||
501 | if (host->host_flags & IDE_HFLAG_SERIALIZE) { | 501 | if (host->host_flags & IDE_HFLAG_SERIALIZE) { |
502 | rc = test_and_set_bit_lock(IDE_HOST_BUSY, &host->host_busy); | 502 | rc = test_and_set_bit_lock(IDE_HOST_BUSY, &host->host_busy); |
503 | if (rc == 0) { | 503 | if (rc == 0) { |
504 | /* for atari only */ | 504 | if (host->get_lock) |
505 | ide_get_lock(ide_intr, hwif); | 505 | host->get_lock(ide_intr, hwif); |
506 | } | 506 | } |
507 | } | 507 | } |
508 | return rc; | 508 | return rc; |
@@ -511,8 +511,8 @@ static inline int ide_lock_host(struct ide_host *host, ide_hwif_t *hwif) | |||
511 | static inline void ide_unlock_host(struct ide_host *host) | 511 | static inline void ide_unlock_host(struct ide_host *host) |
512 | { | 512 | { |
513 | if (host->host_flags & IDE_HFLAG_SERIALIZE) { | 513 | if (host->host_flags & IDE_HFLAG_SERIALIZE) { |
514 | /* for atari only */ | 514 | if (host->release_lock) |
515 | ide_release_lock(); | 515 | host->release_lock(); |
516 | clear_bit_unlock(IDE_HOST_BUSY, &host->host_busy); | 516 | clear_bit_unlock(IDE_HOST_BUSY, &host->host_busy); |
517 | } | 517 | } |
518 | } | 518 | } |