]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit654d23204e61529260879c830e5f46df9cf50dae
treefbefc92b01ca88fc3ccbdcff1b4986dd6fd15f0d
parent7662dae627cf48a1e70930a5c9dc6f75b9c9066e
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