Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Gustavo Zacarias <gustavoz@gentoo.org>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] [PATCH] e100_probe using ioremap
Date: Wed, 05 Apr 2006 14:50:36 -0300	[thread overview]
Message-ID: <4434036C.9060700@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]


e100_probe in drivers/net/e100.c is using ioremap instead of 
ioremap_nocache.
Fix attached.

-- 
Gustavo Zacarias
Gentoo/SPARC monkey

[-- Attachment #2: e100_ioremap.diff --]
[-- Type: text/x-patch, Size: 593 bytes --]

diff -Nura linux-2.6.16-pa11/drivers/net/e100.c linux-2.6.16-pa11-e100/drivers/net/e100.c
--- linux-2.6.16-pa11/drivers/net/e100.c	2006-03-20 02:53:29.000000000 -0300
+++ linux-2.6.16-pa11-e100/drivers/net/e100.c	2006-04-05 14:48:09.000000000 -0300
@@ -2607,7 +2607,7 @@
 	SET_MODULE_OWNER(netdev);
 	SET_NETDEV_DEV(netdev, &pdev->dev);
 
-	nic->csr = ioremap(pci_resource_start(pdev, 0), sizeof(struct csr));
+	nic->csr = ioremap_nocache(pci_resource_start(pdev, 0), sizeof(struct csr));
 	if(!nic->csr) {
 		DPRINTK(PROBE, ERR, "Cannot map device registers, aborting.\n");
 		err = -ENOMEM;

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

                 reply	other threads:[~2006-04-05 17:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4434036C.9060700@gentoo.org \
    --to=gustavoz@gentoo.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    /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