Commit dc605dbd authored by Joe Perches's avatar Joe Perches Committed by Marc Kleine-Budde

can: cc770: Fix likely misuse of | for &

Using | with a constant is always true.
Likely this should have be &.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent f461f27a
......@@ -154,7 +154,7 @@ static int __devinit cc770_get_platform_data(struct platform_device *pdev,
struct cc770_platform_data *pdata = pdev->dev.platform_data;
priv->can.clock.freq = pdata->osc_freq;
if (priv->cpu_interface | CPUIF_DSC)
if (priv->cpu_interface & CPUIF_DSC)
priv->can.clock.freq /= 2;
priv->clkout = pdata->cor;
priv->bus_config = pdata->bcr;
......
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