From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755504Ab3AJSpQ (ORCPT ); Thu, 10 Jan 2013 13:45:16 -0500 Received: from server.prisktech.co.nz ([115.188.14.127]:64610 "EHLO server.prisktech.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754038Ab3AJSpO (ORCPT ); Thu, 10 Jan 2013 13:45:14 -0500 Message-ID: <1357843527.6075.9.camel@gitbox> Subject: Re: [PATCH] gpio: vt8500: memory cleanup missing From: Tony Prisk To: Linus Walleij Cc: Russell King - ARM Linux , Grant Likely , vt8500-wm8505-linux-kernel@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Fri, 11 Jan 2013 07:45:27 +1300 In-Reply-To: References: <1357163240-23131-1-git-send-email-linux@prisktech.co.nz> <20130110105710.GA19944@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2013-01-10 at 13:02 +0100, Linus Walleij wrote: > On Thu, Jan 10, 2013 at 11:57 AM, Russell King - ARM Linux > wrote: > > On Thu, Jan 03, 2013 at 10:47:20AM +1300, Tony Prisk wrote: > > >> +static int vt8500_gpio_remove(struct platform_device *pdev) > >> +{ > >> + int i; > >> + int ret; > >> + const struct vt8500_gpio_data *data; > >> + void __iomem *gpio_base = vtchip[0].base; > >> + const struct of_device_id *of_id = > >> + of_match_device(vt8500_gpio_dt_ids, &pdev->dev); > >> + > > > > You can get at the vtchip pointer if you put it into the platform device's > > driver data pointer. That way, you're not artificially limiting this > > driver to just one device, and, with your changes it will go wrong if DT > > ever lists more than one device. > > Good point, I'm sloppy today :-( > > Patch dropped. > > Tony pls proceed as indicated by Russell. > > Yours, > Linus Walleij I must have been having a 'stupid' day to not realise that. Will fix. Thanks Russell. Regards Tony P