[ARM] 5249/1: davinci: remove redundant check in davinci_psc_config()
id is unsigned, check is redundant. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
45e9c0de2e
commit
380b0fdfd0
|
@ -70,9 +70,6 @@ void davinci_psc_config(unsigned int domain, unsigned int id, char enable)
|
||||||
{
|
{
|
||||||
u32 epcpr, ptcmd, ptstat, pdstat, pdctl1, mdstat, mdctl, mdstat_mask;
|
u32 epcpr, ptcmd, ptstat, pdstat, pdctl1, mdstat, mdctl, mdstat_mask;
|
||||||
|
|
||||||
if (id < 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
mdctl = davinci_readl(DAVINCI_PWR_SLEEP_CNTRL_BASE + MDCTL + 4 * id);
|
mdctl = davinci_readl(DAVINCI_PWR_SLEEP_CNTRL_BASE + MDCTL + 4 * id);
|
||||||
if (enable)
|
if (enable)
|
||||||
mdctl |= 0x00000003; /* Enable Module */
|
mdctl |= 0x00000003; /* Enable Module */
|
||||||
|
|
Loading…
Reference in New Issue