Skip to content

Commit ba27be5

Browse files
committed
bcm2708-i2s: Fix check for B+ board revision to exclude flags like warranty bit
1 parent 16fbce1 commit ba27be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/bcm/bcm2708-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ static void bcm2708_i2s_setup_gpio(void)
352352
/* SPI is on different GPIOs on different boards */
353353
/* for Raspberry Pi B+, this is pin GPIO18-21, for original on 28-31 */
354354
if (bcm2708_i2s_gpio==BCM2708_I2S_GPIO_AUTO) {
355-
if (system_rev >= 0x10) {
355+
if ((system_rev & 0xffffff) >= 0x10) {
356356
/* Model B+ */
357357
pinconfig=BCM2708_I2S_GPIO_PIN18;
358358
} else {

0 commit comments

Comments
 (0)