From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072Ab3LXPl3 (ORCPT ); Tue, 24 Dec 2013 10:41:29 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:47487 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277Ab3LXPl2 (ORCPT ); Tue, 24 Dec 2013 10:41:28 -0500 Message-ID: <1387899682.11622.1.camel@phoenix> Subject: [PATCH] regulator: act8865: Rmove unneeded regulator_unregister() calls From: Axel Lin To: Mark Brown Cc: Wenyou Yang , Liam Girdwood , linux-kernel@vger.kernel.org Date: Tue, 24 Dec 2013 23:41:22 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is not required because current code use devm_regulator_register() to register regulators. Signed-off-by: Axel Lin --- drivers/regulator/act8865-regulator.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index db048f2..dfae294 100644 --- a/drivers/regulator/act8865-regulator.c +++ b/drivers/regulator/act8865-regulator.c @@ -334,17 +334,6 @@ static int act8865_pmic_probe(struct i2c_client *client, return 0; } -static int act8865_pmic_remove(struct i2c_client *client) -{ - struct act8865 *act8865 = i2c_get_clientdata(client); - int i; - - for (i = 0; i < ACT8865_REG_NUM; i++) - regulator_unregister(act8865->rdev[i]); - - return 0; -} - static const struct i2c_device_id act8865_ids[] = { { "act8865", 0 }, { }, @@ -357,7 +346,6 @@ static struct i2c_driver act8865_pmic_driver = { .owner = THIS_MODULE, }, .probe = act8865_pmic_probe, - .remove = act8865_pmic_remove, .id_table = act8865_ids, }; -- 1.8.1.2