Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 20:05:22 +0000 (UTC)
From:      Michael Zhilin <mizhka@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308695 - head/sys/dev/bhnd/bcma
Message-ID:  <201611152005.uAFK5MJ5032839@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mizhka
Date: Tue Nov 15 20:05:22 2016
New Revision: 308695
URL: https://svnweb.freebsd.org/changeset/base/308695

Log:
  [BHND] correct spelling error in macro name
  
  This commit is part of D6920 review. One of macro had wrong prefix:
   BMCA => BCMA
  
  Reviewed by:	landonf, adrian (mentor)
  Approved by:	adrian (mentor)
  Differential Revision:	https://reviews.freebsd.org/D6920

Modified:
  head/sys/dev/bhnd/bcma/bcma.c
  head/sys/dev/bhnd/bcma/bcma_dmp.h

Modified: head/sys/dev/bhnd/bcma/bcma.c
==============================================================================
--- head/sys/dev/bhnd/bcma/bcma.c	Tue Nov 15 19:23:48 2016	(r308694)
+++ head/sys/dev/bhnd/bcma/bcma.c	Tue Nov 15 20:05:22 2016	(r308695)
@@ -274,7 +274,7 @@ bcma_is_hw_suspended(device_t dev, devic
 		return (true);
 	}
 
-	if (rst & BMCA_DMP_RC_RESET)
+	if (rst & BCMA_DMP_RC_RESET)
 		return (true);
 
 	/* Is core clocked? */
@@ -367,11 +367,11 @@ bcma_suspend_hw(device_t dev, device_t c
 
 	/* Already in reset? */
 	rst = bhnd_bus_read_4(r, BCMA_DMP_RESETCTRL);
-	if (rst & BMCA_DMP_RC_RESET)
+	if (rst & BCMA_DMP_RC_RESET)
 		return (0);
 
 	/* Put core into reset */
-	if ((error = bcma_dmp_write_reset(child, dinfo, BMCA_DMP_RC_RESET)))
+	if ((error = bcma_dmp_write_reset(child, dinfo, BCMA_DMP_RC_RESET)))
 		return (error);
 
 	/* Clear core flags */

Modified: head/sys/dev/bhnd/bcma/bcma_dmp.h
==============================================================================
--- head/sys/dev/bhnd/bcma/bcma_dmp.h	Tue Nov 15 19:23:48 2016	(r308694)
+++ head/sys/dev/bhnd/bcma/bcma_dmp.h	Tue Nov 15 20:05:22 2016	(r308695)
@@ -252,7 +252,7 @@
 #define	BCMA_DMP_IOST_MASK	0x0000FFFF
 
 /* resetctrl */
-#define	BMCA_DMP_RC_RESET	0x00000001
+#define	BCMA_DMP_RC_RESET	0x00000001
 
 /* config */
 #define	BCMA_DMP_CFG_OOB	0x00000020



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611152005.uAFK5MJ5032839>