9
0
Fork 0

mfd stmpe: fix test for features

Use '&' to test for the bit as it was intended.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-11-29 16:56:20 +01:00
parent 358434bbdd
commit ab9c2ed94e
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static int stmpe_probe(struct device_d *dev)
i2c_ci->read_reg = stmpe_reg_read;
i2c_ci->write_reg = stmpe_reg_write;
if (pdata->blocks &= STMPE_BLOCK_GPIO)
if (pdata->blocks & STMPE_BLOCK_GPIO)
add_generic_device("stmpe-gpio", DEVICE_ID_DYNAMIC, NULL, 0, 0, IORESOURCE_MEM, i2c_ci);
devfs_create(&stmpe_dev->cdev);