From: Bartlomiej Zolnierkiewicz Date: Fri, 10 Oct 2008 20:39:26 +0000 (+0200) Subject: ide: check drive->present in ide_get_paired_drive() X-Git-Tag: v2.6.28-rc1~710^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e59ea21aab1a91ca31bc64c7d3035ebdbd336d1;p=pandora-kernel.git ide: check drive->present in ide_get_paired_drive() * Change ide_get_paired_drive() to return NULL if peer device is not present and update all users accordingly. While at it: * ide_get_paired_drive() -> ide_get_pair_dev() * Use ide_get_pair_dev() in cs5530.c, sc1200.c and via82cxxx.c. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed