diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-01-15 01:33:08 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-15 01:33:08 -0800 |
commit | d4ae5415c6f2dd8f14e027c24f09d708f11a8d60 (patch) | |
tree | a98f778fe54edfa81a3dbff6736e212e8a2b7005 /drivers/ide/cmd640.c | |
parent | c3be57b6f35ef96a980ce84e59d6a5a8ca6184ad (diff) | |
download | blackbird-op-linux-d4ae5415c6f2dd8f14e027c24f09d708f11a8d60.tar.gz blackbird-op-linux-d4ae5415c6f2dd8f14e027c24f09d708f11a8d60.zip |
ide/ide-cs: fix order of releasing resources
ide_detach() called first ide_release() and then release_region(). This
produced the following warnings:
Trying to free nonexistent resource <000000000000c10e-000000000000c10e>
Trying to free nonexistent resource <000000000000c100-000000000000c107>
This is true, because the callchain inside ide_release() is:
ide_release -> pcmcia_disable_device -> pcmcia_release_io
So, the whole io-block is already gone for release_region(). To fix
this, just swap the order of releasing (and remove the now obsolete
shadowing).
bzolnier:
- release resources in ide_release() to fix ordering of events
- remove stale FIXME note while at it
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/cmd640.c')
0 files changed, 0 insertions, 0 deletions