sh: pci: Prefer P1SEG over P1SEGADDR for CONFIG_CMD.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 17 Apr 2009 05:07:57 +0000 (14:07 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 17 Apr 2009 05:07:57 +0000 (14:07 +0900)
P1SEGADDR is obsolete and will be killed off completely in the future,
so transition off of it and reference P1SEG explicitly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/ops-sh4.c

index 540683d07c77009352a24cf1e347003999dc8070..2a7f7b50ff0a3878db41e53d7aa5c226d2f4b104 100644 (file)
@@ -1,22 +1,22 @@
 /*
  * Generic SH-4 / SH-4A PCIC operations (SH7751, SH7780).
  *
- * Copyright (C) 2002 - 2006  Paul Mundt
+ * Copyright (C) 2002 - 2009  Paul Mundt
  *
  * This file is subject to the terms and conditions of the GNU General Public
  * License v2. See the file "COPYING" in the main directory of this archive
  * for more details.
  */
 #include <linux/pci.h>
+#include <linux/io.h>
 #include <asm/addrspace.h>
-#include <asm/io.h>
 #include "pci-sh4.h"
 
 /*
  * Direct access to PCI hardware...
  */
 #define CONFIG_CMD(bus, devfn, where) \
-       P1SEGADDR((bus->number << 16) | (devfn << 8) | (where & ~3))
+       (P1SEG | (bus->number << 16) | (devfn << 8) | (where & ~3))
 
 static DEFINE_SPINLOCK(sh4_pci_lock);
 
This page took 0.02642 seconds and 5 git commands to generate.