struct rk30_i2c *i2c = NULL;
struct rk30_i2c_platform_data *pdata = NULL;
struct resource *res;
- char name[5];
int ret;
pdata = pdev->dev.platform_data;
platform_set_drvdata(pdev, i2c);
- sprintf(name, "%s%d", "i2c", i2c->adap.nr);
i2c->is_div_from_arm[i2c->adap.nr] = pdata->is_div_from_arm;
if(i2c->is_div_from_arm[i2c->adap.nr])
- wake_lock_init(&i2c->idlelock[i2c->adap.nr], WAKE_LOCK_IDLE, name);
+ wake_lock_init(&i2c->idlelock[i2c->adap.nr], WAKE_LOCK_IDLE, dev_name(&pdev->dev));
i2c->i2c_init_hw(i2c, 100 * 1000);
dev_info(&pdev->dev, "%s: RK30 I2C adapter\n", dev_name(&i2c->adap.dev));