]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: check drive->present in ide_get_paired_drive()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:26 +0000 (22:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:26 +0000 (22:39 +0200)
commit7e59ea21aab1a91ca31bc64c7d3035ebdbd336d1
tree6cdbc937687dbba316f22e2b68cb036511fce951
parent2a924662b646fa25cb491d50aa1202a94aa4ac55
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 <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/arm/palm_bk3710.c
drivers/ide/pci/cs5530.c
drivers/ide/pci/cs5535.c
drivers/ide/pci/opti621.c
drivers/ide/pci/sc1200.c
drivers/ide/pci/siimage.c
drivers/ide/pci/via82cxxx.c
include/linux/ide.h