Skip to content

Commit

Permalink
[PATCH] alim15x3: replace pci_find_device() with pci_dev_present()
Browse files Browse the repository at this point in the history
From: Hanna Linder <hannal@us.ibm.com>

The dev returned from pci_find_device() was not used so it can be
replaced with pci_dev_present().  Compile tested.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Hanna Linder authored and Bartlomiej Zolnierkiewicz committed Nov 18, 2005
1 parent 4ef3b8f commit cc3f7ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/ide/pci/alim15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,14 @@ static ide_pci_device_t ali15x3_chipset __devinitdata = {

static int __devinit alim15x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static struct pci_device_id ati_rs100[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100) },
{ },
};

ide_pci_device_t *d = &ali15x3_chipset;

if(pci_find_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100, NULL))
if (pci_dev_present(ati_rs100))
printk(KERN_ERR "Warning: ATI Radeon IGP Northbridge is not yet fully tested.\n");

#if defined(CONFIG_SPARC64)
Expand Down

0 comments on commit cc3f7ca

Please sign in to comment.