Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752453Ab3JWRZe (ORCPT ); Wed, 23 Oct 2013 13:25:34 -0400 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:51051 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440Ab3JWRZc (ORCPT ); Wed, 23 Oct 2013 13:25:32 -0400 Date: Wed, 23 Oct 2013 20:25:24 +0300 From: Aaro Koskinen To: Sebastian Reichel Cc: Sebastian Reichel , Dmitry Torokhov , Grant Likely , Rob Herring , Peter Ujfalusi , Sachin Kamat , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCHv3 3/3] Input: twl4030-pwrbutton: simplify driver using devm_* Message-ID: <20131023172524.GE24448@blackmetal.musicnaut.iki.fi> References: <1382546835-20212-1-git-send-email-sre@debian.org> <1382546835-20212-4-git-send-email-sre@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382546835-20212-4-git-send-email-sre@debian.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 Content-Length: 693 Lines: 20 Hi, On Wed, Oct 23, 2013 at 06:47:15PM +0200, Sebastian Reichel wrote: > static int __exit twl4030_pwrbutton_remove(struct platform_device *pdev) > { > struct input_dev *pwr = platform_get_drvdata(pdev); > - int irq = platform_get_irq(pdev, 0); > > - free_irq(irq, pwr); > input_unregister_device(pwr); The same bug still exists. You don't need to unregister manually any more, this whole function can be just reduced to "return 0;". A. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/