From patchwork Fri Jun 18 02:02:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junchang Wang X-Patchwork-Id: 106788 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 o5I22lMb004150 for ; Fri, 18 Jun 2010 02:02:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753457Ab0FRCCr (ORCPT ); Thu, 17 Jun 2010 22:02:47 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:46159 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752462Ab0FRCCq (ORCPT ); Thu, 17 Jun 2010 22:02:46 -0400 Received: by pvg6 with SMTP id 6so238899pvg.19 for ; Thu, 17 Jun 2010 19:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=Ovx+ZKWMhp2pEhWUi9CzVxL7HX4t5rkdZmwQ+pT9NaQ=; b=Es4gRzEDUIzFM3LaogaQItWKvRyAVZvsjIg4j9nMq8AUwMG6Y52mIPLB/FE+13vlnV vQ5roPtnHTrwTd0QsmhM85CwlW1D48l/d6kB4kVbgOKbldLcV2VI37uTQnmpTpNg7C70 TLmQN4XDFYcIs9fHRkViNgxB64YkIbeS48OeY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=W8LuCU3fsSE7kI6pcIfCRoX8Xt0BlhjT4xsFHm4Hsj4HlIHoXz0wUhEzHjxmFZLcS8 vWWddqN89zVo+uuafiazHToJCiUkL4gSqn3pUPMwWYchMAhwMhHy6pMKE2M8RON2mxIW MGIre9QBK9AlrX7tlm9tiY/jZtcSQ0GmbswsU= Received: by 10.115.102.36 with SMTP id e36mr289028wam.126.1276826565884; Thu, 17 Jun 2010 19:02:45 -0700 (PDT) Received: from host-a-229.ustcsz.edu.cn ([58.211.218.74]) by mx.google.com with ESMTPS id b6sm102339632wam.21.2010.06.17.19.02.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Jun 2010 19:02:44 -0700 (PDT) Date: Fri, 18 Jun 2010 10:02:33 +0800 From: Junchang Wang To: justinmattock@gmail.com, jbarnes@virtuousgeek.org, bjorn.helgaas@hp.com, linux@dominikbrodowski.net, tj@kernel.org, gregkh@suse.de, julian.calaby@gmail.com Cc: linux-pci@vger.kernel.org Subject: [PATCH]pci/bus.c: check return value of pci_enable_device() Message-ID: <20100618020232.GA425@host-a-229.ustcsz.edu.cn> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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]); Fri, 18 Jun 2010 02:02:47 +0000 (UTC) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 628ea20..4e71777 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c @@ -240,6 +240,9 @@ void pci_enable_bridges(struct pci_bus *bus) if (dev->subordinate) { if (!pci_is_enabled(dev)) { retval = pci_enable_device(dev); + if (retval) + dev_err(&dev->dev, "Error opening " + "device, continuing\n"); pci_set_master(dev); } pci_enable_bridges(dev->subordinate);