From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julia Lawall Subject: Re: [PATCH] Input: touchscreen : Introduce the use of the managed version of kzalloc Date: Thu, 29 May 2014 09:20:20 +0200 (CEST) Message-ID: References: <20140528180214.GA5957@himangi-Dell> <20140529071510.GF11817@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20140529071510.GF11817@core.coreip.homeip.net> Sender: linux-kernel-owner@vger.kernel.org To: Dmitry Torokhov Cc: Himangi Saraogi , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-input@vger.kernel.org > > @@ -618,39 +619,22 @@ static int mrstouch_probe(struct platform_device *pdev) > > input_set_abs_params(tsdev->input, ABS_PRESSURE, > > MRST_PRESSURE_MIN, MRST_PRESSURE_MAX, 0, 0); > > > > - err = request_threaded_irq(tsdev->irq, NULL, mrstouch_pendet_irq, > > - IRQF_ONESHOT, "mrstouch", tsdev); > > + err = devm_request_threaded_irq(&pdev->dev, tsdev->irq, NULL, > > + mrstouch_pendet_irq, IRQF_ONESHOT, > > + "mrstouch", tsdev); > > if (err) { > > dev_err(tsdev->dev, "unable to allocate irq\n"); > > - goto err_free_mem; > > + return -ENOMEM; > > This is bad conversion. We used to report 'err' returned by > request_threaded_irq, but now we always report -ENOMEM. I fixed it up > here and in other places and applied. Sorry to have missed that. I guess you got the one on the call to mrstouch_adc_init as well? thanks, julia