From patchwork Sun Dec 27 10:46:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7923231 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A82049F318 for ; Sun, 27 Dec 2015 10:47:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B7140202AE for ; Sun, 27 Dec 2015 10:47:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D63F2202BE for ; Sun, 27 Dec 2015 10:47:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbbL0Kr0 (ORCPT ); Sun, 27 Dec 2015 05:47:26 -0500 Received: from m50-134.163.com ([123.125.50.134]:56325 "EHLO m50-134.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751948AbbL0Kqo (ORCPT ); Sun, 27 Dec 2015 05:46:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=2v2Y/GWBX8rcjQxqXz sTJpWoVTqYZ6j0Yy99lh5+29k=; b=lCQVJfcGyMyVN615S+zFfvRp4LsEim2uE1 p/APzfzLvubBm5Do9klHUyINdD7/M3UJUd5782NBpWWLqdZyBZrKSt2gOfqBEUWo Y/ltVR8RPTQlnFb+n1zXpm67Yjk6LtXaYngX/9kgFM3MijVeUSQscZPrrENW+pua j/1i/W2VU= Received: from localhost (unknown [116.77.145.148]) by smtp4 (Coremail) with SMTP id DtGowEAZSVCNwX9WYy6BAA--.10701S3; Sun, 27 Dec 2015 18:46:37 +0800 (CST) From: Geliang Tang To: Stanislav Yakovlev , Kalle Valo Cc: Geliang Tang , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] ipw2x00: sdhci-pci: use to_pci_dev() Date: Sun, 27 Dec 2015 18:46:01 +0800 Message-Id: <896b7d080610c5417a2f09a3bf9d0e20636fcc52.1451211133.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: References: In-Reply-To: References: X-CM-TRANSID: DtGowEAZSVCNwX9WYy6BAA--.10701S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7XFWxJFyxtr43WF13Cr13XFb_yoW3urg_ur nFyFs7XryrG3WF9r43CrWIyryYka4vqay8WFZ7try5Ka13ZrWDCr98Zry2qFWYgr1DAFyY yrnrGF15CrZ0kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbgo7tUUUUU== X-Originating-IP: [116.77.145.148] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiJQ7dmVUL9EkYnwAAsL Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index 36818c7..121294f 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -3514,7 +3514,7 @@ static void ipw2100_msg_free(struct ipw2100_priv *priv) static ssize_t show_pci(struct device *d, struct device_attribute *attr, char *buf) { - struct pci_dev *pci_dev = container_of(d, struct pci_dev, dev); + struct pci_dev *pci_dev = to_pci_dev(d); char *out = buf; int i, j; u32 val;