From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755346Ab1IFXJa (ORCPT ); Tue, 6 Sep 2011 19:09:30 -0400 Received: from cpc7-stkp7-2-0-cust918.10-2.cable.virginmedia.com ([86.22.251.151]:39110 "EHLO freya" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755315Ab1IFXJ0 (ORCPT ); Tue, 6 Sep 2011 19:09:26 -0400 Date: Wed, 7 Sep 2011 00:09:01 +0100 From: Ben Dooks To: Axel Lin Cc: linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , Dirk Brandewie , Jean Delvare , Ben Dooks , linux-i2c@vger.kernel.org Subject: Re: [PATCH RESEND] i2c-pxa2xx: return proper error code in ce4100_i2c_probe error paths Message-ID: <20110906230901.GA25655@freya.fluff.org> References: <1314686257.3270.2.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1314686257.3270.2.camel@phoenix> X-Disclaimer: These are my views alone. X-URL: http://www.fluff.org/ User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 30, 2011 at 02:37:37PM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin > Acked-by: Sebastian Andrzej Siewior A message in the patch description body is always useful. Will apply. > --- > Hi Ben, > Seems this patch is not yet upstream. Here is the resend. > > Axel > > drivers/i2c/busses/i2c-pxa-pci.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-pxa-pci.c b/drivers/i2c/busses/i2c-pxa-pci.c > index 6659d26..b73da6c 100644 > --- a/drivers/i2c/busses/i2c-pxa-pci.c > +++ b/drivers/i2c/busses/i2c-pxa-pci.c > @@ -109,12 +109,15 @@ static int __devinit ce4100_i2c_probe(struct pci_dev *dev, > return -EINVAL; > } > sds = kzalloc(sizeof(*sds), GFP_KERNEL); > - if (!sds) > + if (!sds) { > + ret = -ENOMEM; > goto err_mem; > + } > > for (i = 0; i < ARRAY_SIZE(sds->pdev); i++) { > sds->pdev[i] = add_i2c_device(dev, i); > if (IS_ERR(sds->pdev[i])) { > + ret = PTR_ERR(sds->pdev[i]); > while (--i >= 0) > platform_device_unregister(sds->pdev[i]); > goto err_dev_add; > -- > 1.7.4.1 > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html