From patchwork Fri Jan 13 07:41:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 135729 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 433BEB6F9A for ; Fri, 13 Jan 2012 18:39:47 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753538Ab2AMHjm (ORCPT ); Fri, 13 Jan 2012 02:39:42 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:64196 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151Ab2AMHjm (ORCPT ); Fri, 13 Jan 2012 02:39:42 -0500 Received: by eaal12 with SMTP id l12so64711eaa.19 for ; Thu, 12 Jan 2012 23:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=J8offAFQrKtH5U4PVxJtIs5dJ0cKPglBr0afqa44oyg=; b=mV9nSpK+8nup4HflfAQYTXaAc8Y//t7k1cGXWhimt/aC0SFtU2zwpMvROx2McCHFfR l1oB8V6gTD4Z6IFwlzXvtBAqDUnlu9CMREvV6r/bPvteQjBzQFcETLmG1P66fxQL5jfD WVLipdakmtLyS86tE8WYb7aze7xDNsiTzpNOM= Received: by 10.213.102.9 with SMTP id e9mr363230ebo.95.1326440380922; Thu, 12 Jan 2012 23:39:40 -0800 (PST) Received: from localhost.localdomain (gw.bas.roche.com. [196.3.50.254]) by mx.google.com with ESMTPS id 15sm26183492eeu.1.2012.01.12.23.39.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 23:39:40 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Linus Torvalds Cc: Arend van Spriel , Larry Finger , Alwin Beukers , Roland Vossen , "John W. Linville" , Network Development , "Franky (Zhenhui) Lin" , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] bcma: s&r: NULL mapped core Date: Fri, 13 Jan 2012 08:41:20 +0100 Message-Id: <1326440480-26271-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: References: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org --- drivers/bcma/host_pci.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c index 443b83a..726e43d 100644 --- a/drivers/bcma/host_pci.c +++ b/drivers/bcma/host_pci.c @@ -237,11 +237,16 @@ static void bcma_host_pci_remove(struct pci_dev *dev) #ifdef CONFIG_PM static int bcma_host_pci_suspend(struct pci_dev *dev, pm_message_t state) { + struct bcma_bus *bus = pci_get_drvdata(dev); + /* Host specific */ pci_save_state(dev); pci_disable_device(dev); pci_set_power_state(dev, pci_choose_state(dev, state)); + /* Bus specific */ + bus->mapped_core = NULL; + return 0; }