9
0
Fork 0

Merge branch 'for-next/mfd'

This commit is contained in:
Sascha Hauer 2012-12-07 16:43:15 +01:00
commit 36a886a9f7
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ static int stmpe_probe(struct device_d *dev)
}
stmpe_dev = xzalloc(sizeof(struct stmpe));
stmpe_dev->cdev.name = DRIVERNAME;
stmpe_dev->cdev.name = asprintf(DRIVERNAME "%d",
cdev_find_free_index(DRIVERNAME));
stmpe_dev->client = to_i2c_client(dev);
stmpe_dev->cdev.size = 191; /* 191 known registers */
stmpe_dev->cdev.dev = dev;