From patchwork Mon Jul 28 12:33:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 374187 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 81D801400A3 for ; Mon, 28 Jul 2014 22:33:24 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752594AbaG1MdU (ORCPT ); Mon, 28 Jul 2014 08:33:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:51618 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbaG1MdS (ORCPT ); Mon, 28 Jul 2014 08:33:18 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 483BAAAC3; Mon, 28 Jul 2014 12:33:17 +0000 (UTC) Date: Mon, 28 Jul 2014 14:33:14 +0200 From: Jean Delvare To: Linux I2C Cc: Jingoo Han , Violeta Menendez , Ian Molton , Wolfram Sang Subject: [PATCH] i2c-gpio: Drop dead code in i2c_gpio_remove Message-ID: <20140728143314.691999a5@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Commit a0682a31 ("i2c: gpio: Use devm_gpio_request()") left unused code behind, clean it up. Fixes: a0682a315889 ("i2c: gpio: Use devm_gpio_request()") Signed-off-by: Jean Delvare Cc: Jingoo Han Cc: Violeta Menendez Cc: Ian Molton Cc: Wolfram Sang --- drivers/i2c/busses/i2c-gpio.c | 2 -- 1 file changed, 2 deletions(-) --- linux-3.16-rc6.orig/drivers/i2c/busses/i2c-gpio.c 2014-06-16 05:45:28.000000000 +0200 +++ linux-3.16-rc6/drivers/i2c/busses/i2c-gpio.c 2014-07-28 14:26:07.821013275 +0200 @@ -238,12 +238,10 @@ static int i2c_gpio_probe(struct platfor static int i2c_gpio_remove(struct platform_device *pdev) { struct i2c_gpio_private_data *priv; - struct i2c_gpio_platform_data *pdata; struct i2c_adapter *adap; priv = platform_get_drvdata(pdev); adap = &priv->adap; - pdata = &priv->pdata; i2c_del_adapter(adap);