i2c: remove dead code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
05753b98c0
commit
5cee215f3e
|
@ -265,23 +265,7 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* drivers may modify this initial i/o setup */
|
|
||||||
status = master->setup(client);
|
|
||||||
if (status < 0) {
|
|
||||||
printf("can't setup %s, status %d\n",
|
|
||||||
client->dev.name, status);
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return client;
|
return client;
|
||||||
|
|
||||||
#if 0
|
|
||||||
fail:
|
|
||||||
free(proxy);
|
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(i2c_new_device);
|
EXPORT_SYMBOL(i2c_new_device);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue