ide-floppy: use drive->pc_callback instead of pc->callback
authorBorislav Petkov <petkovbb@googlemail.com>
Wed, 23 Jul 2008 17:55:59 +0000 (19:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:59 +0000 (19:55 +0200)
commit2207fa5af1507ea018fc95e777276edb1ca5601a
tree7e8ee9c8932bb71bc5ef79007ae35b777f8f254c
parentd7c26ebb5bca284ece9db7311a9e180aabae1922
ide-floppy: use drive->pc_callback instead of pc->callback

It is important that drive->pc_callback is set prior to enabling IRQs on the
device since this is called from the IRQ handler. Otherwise it hurts as I learnt
the hard way from the several "Kernel panic - not synching: Fatal exception in
interrupt" during the weekend :).

The if-else block in the IRQ handler is only temporary so that bisect searches
don't break and it'll be removed after converting the remainder of the drivers.

There should be no functionality change resulting from this patch.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-atapi.c
drivers/ide/ide-floppy.c