From patchwork Thu Jun 17 20:43:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Zickus X-Patchwork-Id: 106748 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5HKhGOQ004389 for ; Thu, 17 Jun 2010 20:43:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757508Ab0FQUnP (ORCPT ); Thu, 17 Jun 2010 16:43:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756612Ab0FQUnP (ORCPT ); Thu, 17 Jun 2010 16:43:15 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5HKhE2R004785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jun 2010 16:43:14 -0400 Received: from redhat.com (dhcp-100-18-242.bos.redhat.com [10.16.18.242]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id o5HKhD4v009616; Thu, 17 Jun 2010 16:43:13 -0400 Date: Thu, 17 Jun 2010 16:43:13 -0400 From: Don Zickus To: linux-pci@vger.kernel.org Cc: jbarnes@virtuousgeek.org Subject: [RFC] Remove WARN_ON in pci_get_dev_by_id Message-ID: <20100617204313.GW3217@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 17 Jun 2010 20:43:16 +0000 (UTC) diff --git a/drivers/pci/search.c b/drivers/pci/search.c index ec41535..874c975 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -209,7 +209,6 @@ static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id, struct device *dev_start = NULL; struct pci_dev *pdev = NULL; - WARN_ON(in_interrupt()); if (from) dev_start = &from->dev; dev = bus_find_device(&pci_bus_type, dev_start, (void *)id,