From: Benjamin Herrenschmidt Date: Mon, 28 Jul 2008 01:29:56 +0000 (+1000) Subject: ide/powermac: Fix use of uninitialized pointer on media-bay X-Git-Tag: v2.6.27-rc2~117^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9842727da7d95d8249087148048cc571f967c023;p=pandora-kernel.git ide/powermac: Fix use of uninitialized pointer on media-bay The current ide-pmac calls media_bay_set_ide_infos() with an uninitialized "hwif" argument. The proper fix is to split the allocation of the hwif from its registration in order to properly setup the mediabay informations before registration. Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed