ide: fix crash at boot with siimage driver
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Apr 2008 20:57:37 +0000 (22:57 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 29 Apr 2008 20:57:37 +0000 (22:57 +0200)
commitb26b0c590066f65ff3b1ff438502f3c40ea39520
treebd17faaa4f10748cfde619d80da8e21d0864df60
parent7663c1e2792a9662b23dec6e19bfcd3d55360b8f
ide: fix crash at boot with siimage driver

Some change to the IDE layer are causing the siimage driver to crash
at boot with a NULL dereference. This is due to the sil_dma_ops not
containing all the necessary pointers. I suppose it used to just
"override" the defaults while now, it needs to contain everything.

[bart: while at it: sil_dma_ops should be const now (pointed out by Sergei)]

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>,
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/siimage.c