Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: tidspbridge: fix an erroneous removal of parentheses

Commit 4a9fdbb (staging: core: tiomap3430.c Fix line over 80 characters.)
erroneously removed the parentheses around the function pointer leading
to the following build error (when enabling the build of TI DSP/Bridge
driver):

drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_monitor':
drivers/staging/tidspbridge/core/tiomap3430.c:283:10: error: invalid type argument of unary '*' (have 'u32')
make[3]: *** [drivers/staging/tidspbridge/core/tiomap3430.o] Error 1

Fix this build error properly.

Fixes: 4a9fdbb (staging: core: tiomap3430.c Fix line over 80 characters.)
Cc: Aybuke Ozdemir <aybuke.147@gmail.com>
Cc: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Cc: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Cc: stable <stable@vger.kernel.org> # 3.15
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Suman Anna and committed by
Greg Kroah-Hartman
ff4f58f0 a497c3ba

+4 -2
+4 -2
drivers/staging/tidspbridge/core/tiomap3430.c
··· 280 280 OMAP3430_IVA2_MOD, OMAP2_CM_CLKSTCTRL); 281 281 282 282 /* Wait until the state has moved to ON */ 283 - while (*pdata->dsp_prm_read(OMAP3430_IVA2_MOD, OMAP2_PM_PWSTST)& 284 - OMAP_INTRANSITION_MASK); 283 + while ((*pdata->dsp_prm_read)(OMAP3430_IVA2_MOD, 284 + OMAP2_PM_PWSTST) & 285 + OMAP_INTRANSITION_MASK) 286 + ; 285 287 /* Disable Automatic transition */ 286 288 (*pdata->dsp_cm_write)(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, 287 289 OMAP3430_IVA2_MOD, OMAP2_CM_CLKSTCTRL);