svn commit: r196479 - head/sys/arm/xscale/ixp425

Olivier Houchard cognet at FreeBSD.org
Sun Aug 23 19:54:37 UTC 2009


Author: cognet
Date: Sun Aug 23 19:54:36 2009
New Revision: 196479
URL: http://svn.freebsd.org/changeset/base/196479

Log:
  No need to remove the same flag multiple times.

Modified:
  head/sys/arm/xscale/ixp425/ixdp425_pci.c

Modified: head/sys/arm/xscale/ixp425/ixdp425_pci.c
==============================================================================
--- head/sys/arm/xscale/ixp425/ixdp425_pci.c	Sun Aug 23 19:52:47 2009	(r196478)
+++ head/sys/arm/xscale/ixp425/ixdp425_pci.c	Sun Aug 23 19:54:36 2009	(r196479)
@@ -62,12 +62,12 @@ ixp425_md_attach(device_t dev)
 	/* PCI Reset Assert */
 	reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR);
 	reg &= ~(1U << GPIO_PCI_RESET);
-	GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg & ~(1U << GPIO_PCI_RESET));
+	GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg);
 
 	/* PCI Clock Disable */
 	reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPCLKR);
 	reg &= ~GPCLKR_MUX14;
-	GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg & ~GPCLKR_MUX14);
+	GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg);
 
 	/*
 	 * set GPIO Direction


More information about the svn-src-head mailing list