From: "Hans J. Koch" <hjk@linutronix.de>
To: Arjan van de Ven <arjan@infradead.org>
Cc: hjk@linutronix.de, tglx@tglx.de, Greg KH <gregkh@suse.de>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pci: use pci_ioremap_bar() in drivers/uio
Date: Tue, 21 Oct 2008 11:17:51 +0200 [thread overview]
Message-ID: <20081021091750.GA2966@local> (raw)
In-Reply-To: <20081020215444.098868d5@infradead.org>
Added Greg KH to CC since he handles the UIO patch queue. Also added
lkml since UIO patches are discussed there.
On Mon, Oct 20, 2008 at 09:54:44PM -0700, Arjan van de Ven wrote:
>
> >From 8d0e600e37f36d379b2f7652912f1b1090c9dfa3 Mon Sep 17 00:00:00 2001
> From: Arjan van de Ven <arjan@linux.intel.com>
> Date: Sun, 28 Sep 2008 16:20:35 -0700
> Subject: [PATCH] pci: use pci_ioremap_bar() in drivers/uio
>
> Use the newly introduced pci_ioremap_bar() function in drivers/uio.
> pci_ioremap_bar() just takes a pci device and a bar number, with the goal
> of making it really hard to get wrong, while also having a central place
> to stick sanity checks.
>
> CC: tglx@tglx.de
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
> ---
> drivers/uio/uio_cif.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c
> index 5737606..c60b8fc 100644
> --- a/drivers/uio/uio_cif.c
> +++ b/drivers/uio/uio_cif.c
> @@ -57,8 +57,7 @@ static int __devinit hilscher_pci_probe(struct pci_dev *dev,
> info->mem[0].addr = pci_resource_start(dev, 0);
> if (!info->mem[0].addr)
> goto out_release;
> - info->mem[0].internal_addr = ioremap(pci_resource_start(dev, 0),
> - pci_resource_len(dev, 0));
> + info->mem[0].internal_addr = pci_ioremap_bar(dev, 0);
> if (!info->mem[0].internal_addr)
> goto out_release;
>
> --
> 1.5.5.1
>
>
> --
> Arjan van de Ven Intel Open Source Technology Centre
> For development, discussion and tips for power savings,
> visit http://www.lesswatts.org
next parent reply other threads:[~2008-10-21 9:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081020215444.098868d5@infradead.org>
2008-10-21 9:17 ` Hans J. Koch [this message]
2008-10-27 19:44 ` patch uio-use-pci_ioremap_bar-in-drivers-uio.patch added to gregkh-2.6 tree gregkh
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=20081021091750.GA2966@local \
--to=hjk@linutronix.de \
--cc=arjan@infradead.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@tglx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.