sata_mv: Fix warnings when no PCI
authorAndrew Lunn <andrew@lunn.ch>
Fri, 28 Sep 2012 15:04:10 +0000 (17:04 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 2 Oct 2012 02:53:23 +0000 (22:53 -0400)
commit13b74085d92feda78bad1045516d332a1e9a3407
treefbefc92b01ca88fc3ccbdcff1b4986dd6fd15f0d
parent40dad0af2d5c3122d883b2baed4bb39baf6561ec
sata_mv: Fix warnings when no PCI

Dove can be configured without PCI. We then get a number of warnings:

warning: 'msi' defined but not used
warning: 'mv5_sht' defined but not used
warning: 'mv_dump_pci_cfg' defined but not used.

Move around variables and add #ifdef as necassary to fix the warnings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c