/* Unregister TPS driver as an i2c client device driver  */
static int __devexit tps_6507x_remove(struct i2c_client *client)
/* Unregister TPS driver as an i2c client device driver  */
static int __devexit tps_6507x_remove(struct i2c_client *client)
{
	struct tps_pmic *tps = i2c_get_clientdata(client);
	int i;
	for (i = 0; i < TPS6507X_NUM_REGULATOR; i++)
		regulator_unregister(tps->rdev[i]);
	tps->client = NULL;
	i2c_set_clientdata(client, NULL);
	kfree(tps);
	return 0;
}