aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-29 07:10:28 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-29 07:10:28 +0000
commit6b8e764c0f707ee9596b10a3dcd883ef76618c15 (patch)
tree92278c62e5608f559b692cfac937916b78067d8c /unmodified_drivers
parentb5ae6dbc896dcceb4fdaa4c941ade09668ec9236 (diff)
downloadxen-6b8e764c0f707ee9596b10a3dcd883ef76618c15.tar.gz
xen-6b8e764c0f707ee9596b10a3dcd883ef76618c15.tar.bz2
xen-6b8e764c0f707ee9596b10a3dcd883ef76618c15.zip
pv-on-hvm: Correct the order of the argument of out*()
The order of the argument of outl() is wrong. The correct order is outl(value, port). This causes kernel panic. And outw() is also similar. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/platform-pci/platform-pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
index b2ea7b5bbe..dedb846e7c 100644
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
@@ -324,15 +324,15 @@ static int check_platform_magic(struct device *dev, long ioaddr, long iolen)
switch (protocol) {
case 1:
- outw(XEN_IOPORT_PRODNUM, XEN_IOPORT_LINUX_PRODNUM);
- outl(XEN_IOPORT_DRVVER, XEN_IOPORT_LINUX_DRVVER);
+ outw(XEN_IOPORT_LINUX_PRODNUM, XEN_IOPORT_PRODNUM);
+ outl(XEN_IOPORT_LINUX_DRVVER, XEN_IOPORT_DRVVER);
if (inw(XEN_IOPORT_MAGIC) != XEN_IOPORT_MAGIC_VAL) {
dev_err(dev, "blacklisted by host\n");
return -ENODEV;
}
/* Fall through */
case 0:
- outw(XEN_IOPORT_UNPLUG, 0xf);
+ outw(0xf, XEN_IOPORT_UNPLUG);
break;
default:
err = "unknown I/O protocol version";