Commit 460bb8df authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

Staging: rt28x0: remove __LINE__ instances

Remove instances of __LINE__ preprocessor directive to make
validation of resulting binary output files easier.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5a132231
...@@ -1222,13 +1222,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE)) ...@@ -1222,13 +1222,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE))
{ {
if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE) if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE)
{ {
DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__)); DBGPRINT(RT_DEBUG_TRACE, ("%s\n", __func__));
RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0); RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0);
} }
else else
{ {
DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x2); AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x2);
// Wait command success // Wait command success
AsicCheckCommanOk(pAd, PowerSafeCID); AsicCheckCommanOk(pAd, PowerSafeCID);
...@@ -1240,12 +1238,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE)) ...@@ -1240,12 +1238,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE))
{ {
if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE) if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE)
{ {
DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__)); DBGPRINT(RT_DEBUG_TRACE, ("%s\n", __func__));
RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0); RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0);
} }
else else
{ {
DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x02); AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x02);
// Wait command success // Wait command success
AsicCheckCommanOk(pAd, PowerSafeCID); AsicCheckCommanOk(pAd, PowerSafeCID);
......
...@@ -1261,7 +1261,8 @@ VOID NICInitAsicFromEEPROM( ...@@ -1261,7 +1261,8 @@ VOID NICInitAsicFromEEPROM(
&& (pAd->StaCfg.PSControl.field.rt30xxPowerMode == 3) && (pAd->StaCfg.PSControl.field.rt30xxPowerMode == 3)
&& (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE)) && (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE))
{ {
DBGPRINT(RT_DEBUG_TRACE,("%s::%d,release Mcu Lock\n",__FUNCTION__,__LINE__)); DBGPRINT(RT_DEBUG_TRACE,
("%s, release Mcu Lock\n", __func__));
RTMP_SEM_LOCK(&pAd->McuCmdLock); RTMP_SEM_LOCK(&pAd->McuCmdLock);
pAd->brt30xxBanMcuCmd = FALSE; pAd->brt30xxBanMcuCmd = FALSE;
RTMP_SEM_UNLOCK(&pAd->McuCmdLock); RTMP_SEM_UNLOCK(&pAd->McuCmdLock);
......
...@@ -599,7 +599,6 @@ VOID RTMPInitPCIeLinkCtrlValue( ...@@ -599,7 +599,6 @@ VOID RTMPInitPCIeLinkCtrlValue(
} }
DBGPRINT(RT_DEBUG_TRACE, ("====> rt28xx Write 0x83 Command = 0x%x.\n", PCIePowerSaveLevel)); DBGPRINT(RT_DEBUG_TRACE, ("====> rt28xx Write 0x83 Command = 0x%x.\n", PCIePowerSaveLevel));
printk("\n\n\n%s:%d\n",__FUNCTION__,__LINE__);
AsicSendCommandToMcu(pAd, 0x83, 0xff, (UCHAR)PCIePowerSaveLevel, 0x00); AsicSendCommandToMcu(pAd, 0x83, 0xff, (UCHAR)PCIePowerSaveLevel, 0x00);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment