linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gertjan van Wingerde <gwingerde@gmail.com>
To: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	Ivo van Doorn <IvDoorn@gmail.com>
Subject: Re: [PATCH 4/7] rt2x00: Use pci_is_pcie()
Date: Tue, 21 Dec 2010 08:42:09 +0100	[thread overview]
Message-ID: <4D105A51.9070702@gmail.com> (raw)
In-Reply-To: <1292893316-26694-5-git-send-email-hauke@hauke-m.de>

On 12/21/10 02:01, Hauke Mehrtens wrote:
> Use function pci_is_pcie() instead of accessing struct member directly.
> 
> CC: Ivo van Doorn <IvDoorn@gmail.com>
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>

> ---
>  drivers/net/wireless/rt2x00/rt2x00pci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
> index 28e6ff1..73631c6 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
> @@ -286,7 +286,7 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
>  	rt2x00dev->irq = pci_dev->irq;
>  	rt2x00dev->name = pci_name(pci_dev);
>  
> -	if (pci_dev->is_pcie)
> +	if (pci_is_pcie(pci_dev))
>  		rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCIE);
>  	else
>  		rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);


  reply	other threads:[~2010-12-21  7:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21  1:01 [PATCH 0/7] Small patches from compat-wirelss for mainline Hauke Mehrtens
2010-12-21  1:01 ` [PATCH 1/7] wl1251: remove unnecessary import Hauke Mehrtens
2010-12-21 15:19   ` Kalle Valo
2010-12-21  1:01 ` [PATCH 2/7] wl12xx: " Hauke Mehrtens
2010-12-21  9:32   ` Luciano Coelho
2010-12-21  1:01 ` [PATCH 3/7] ssb: Use pci_is_pcie() Hauke Mehrtens
2010-12-21  1:01 ` [PATCH 4/7] rt2x00: " Hauke Mehrtens
2010-12-21  7:42   ` Gertjan van Wingerde [this message]
2010-12-21 11:50     ` Ivo Van Doorn
2010-12-21  1:01 ` [PATCH 5/7] ath5k: " Hauke Mehrtens
2010-12-21  1:01 ` [PATCH 6/7] ath9k: " Hauke Mehrtens
2010-12-21  1:01 ` [PATCH 7/7] rtlwifi: Use pci_pcie_cap() Hauke Mehrtens
2010-12-21  3:48   ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D105A51.9070702@gmail.com \
    --to=gwingerde@gmail.com \
    --cc=IvDoorn@gmail.com \
    --cc=hauke@hauke-m.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).