From: Bartlomiej Zolnierkiewicz Date: Tue, 2 Sep 2008 18:18:47 +0000 (+0200) Subject: ide: fix hwif_to_node() X-Git-Tag: v2.6.27-rc6~76^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f80219b738f84f90e449385bdede90f2910521;p=pandora-kernel.git ide: fix hwif_to_node() hwif_to_node() incorrectly assumes that hwif->dev always belongs to a PCI device. This results in ide-cs oopsing in init_irq() after commit c56c5648a3bd15ff14c50f284b261140cd5b5472 accidentally fixed device tree registration for ide-cs. Fix it by using dev_to_node(). Thanks to Martin Michlmayr and Larry Finger for help with debugging the issue. Reported-by: Martin Michlmayr Tested-by: Martin Michlmayr Cc: Larry Finger Cc: Dominik Brodowski Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed