From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UeWQu-0000ZY-Ni for barebox@lists.infradead.org; Mon, 20 May 2013 20:11:49 +0000 From: Sascha Hauer Date: Mon, 20 May 2013 22:11:21 +0200 Message-Id: <1369080684-11138-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1369080684-11138-1-git-send-email-s.hauer@pengutronix.de> References: <1369080684-11138-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/5] i2c: remove dead code To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- drivers/i2c/i2c.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c index 488b636..53a11fe 100644 --- a/drivers/i2c/i2c.c +++ b/drivers/i2c/i2c.c @@ -265,23 +265,7 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter, 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; - -#if 0 - fail: - free(proxy); - return NULL; -#endif } EXPORT_SYMBOL(i2c_new_device); -- 1.8.2.rc2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox