mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
pata_scc: fix compilation
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
e1e143cf97
commit
0397bad5b4
1 changed files with 2 additions and 2 deletions
|
|
@ -1142,14 +1142,14 @@ static int scc_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
static int printed_version;
|
||||
unsigned int board_idx = (unsigned int) ent->driver_data;
|
||||
const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL };
|
||||
struct device *dev = &pdev->dev;
|
||||
struct ata_host *host;
|
||||
int rc;
|
||||
|
||||
if (!printed_version++)
|
||||
dev_printk(KERN_DEBUG, &pdev->dev,
|
||||
"version " DRV_VERSION "\n");
|
||||
|
||||
host = ata_port_alloc_pinfo(&pdev->dev, ppi, 1);
|
||||
host = ata_host_alloc_pinfo(&pdev->dev, ppi, 1);
|
||||
if (!host)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue