Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269885AbUJHB1N (ORCPT ); Thu, 7 Oct 2004 21:27:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267880AbUJHBXy (ORCPT ); Thu, 7 Oct 2004 21:23:54 -0400 Received: from e5.ny.us.ibm.com ([32.97.182.105]:1998 "EHLO e5.ny.us.ibm.com") by vger.kernel.org with ESMTP id S269903AbUJGWvK (ORCPT ); Thu, 7 Oct 2004 18:51:10 -0400 Date: Thu, 07 Oct 2004 15:51:44 -0700 From: Hanna Linder To: lkml cc: kernel-janitors , greg@kroah.com, hannal@us.ibm.com, paulus@samba.org Subject: [PATCH 2.6][7/12] pcore.c replace pci_find_device with pci_get_device Message-ID: <30730000.1097189504@w-hlinder.beaverton.ibm.com> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 39 As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put. If someone with a PPC system could test it I would appreciate it. Thanks. Hanna Linder IBM Linux Technology Center Signed-off-by: Hanna Linder --- diff -Nrup linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/pcore.c linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/pcore.c --- linux-2.6.9-rc3-mm2cln/arch/ppc/platforms/pcore.c 2004-09-29 20:03:45.000000000 -0700 +++ linux-2.6.9-rc3-mm2patch2/arch/ppc/platforms/pcore.c 2004-10-07 15:30:31.839323128 -0700 @@ -89,7 +89,7 @@ pcore_pcibios_fixup(void) { struct pci_dev *dev; - if ((dev = pci_find_device(PCI_VENDOR_ID_WINBOND, + if ((dev = pci_get_device(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_83C553, 0))) { @@ -108,6 +108,7 @@ pcore_pcibios_fixup(void) */ outb(0x00, PCORE_WINBOND_PRI_EDG_LVL); outb(0x1e, PCORE_WINBOND_SEC_EDG_LVL); + pci_dev_put(dev); } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/