can: some fixes and cleanups to the initial device driver interface
This patch fixes a few errors sneaked into the initial version of the device driver interface. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
86d15cd833
commit
128ced8f9d
@@ -218,14 +218,12 @@ static int __devinit ems_pci_add_card(struct pci_dev *pdev,
|
||||
card->conf_addr = pci_iomap(pdev, 0, EMS_PCI_MEM_SIZE);
|
||||
if (card->conf_addr == NULL) {
|
||||
err = -ENOMEM;
|
||||
|
||||
goto failure_cleanup;
|
||||
}
|
||||
|
||||
card->base_addr = pci_iomap(pdev, 1, EMS_PCI_MEM_SIZE);
|
||||
if (card->base_addr == NULL) {
|
||||
err = -ENOMEM;
|
||||
|
||||
goto failure_cleanup;
|
||||
}
|
||||
|
||||
@@ -239,7 +237,6 @@ static int __devinit ems_pci_add_card(struct pci_dev *pdev,
|
||||
ems_pci_readb(card, 3) != 0xCB ||
|
||||
ems_pci_readb(card, 4) != 0x11) {
|
||||
dev_err(&pdev->dev, "Not EMS Dr. Thomas Wuensche interface\n");
|
||||
|
||||
err = -ENODEV;
|
||||
goto failure_cleanup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user