Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753495AbcJLQId (ORCPT ); Wed, 12 Oct 2016 12:08:33 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:34899 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752672AbcJLQI0 (ORCPT ); Wed, 12 Oct 2016 12:08:26 -0400 MIME-Version: 1.0 In-Reply-To: <20161012053842.GF19385@vireshk-i7> References: <1475882487-2155-1-git-send-email-mmayer@broadcom.com> <1475882487-2155-3-git-send-email-mmayer@broadcom.com> <20161012053842.GF19385@vireshk-i7> From: Markus Mayer Date: Wed, 12 Oct 2016 09:08:24 -0700 Message-ID: Subject: Re: [PATCH v3 2/3] cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs To: Viresh Kumar Cc: "Rafael J . Wysocki" , Rob Herring , Mark Rutland , Broadcom Kernel List , Device Tree List , Power Management List , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 25 On 11 October 2016 at 22:38, Viresh Kumar wrote: > On 07-10-16, 16:21, Markus Mayer wrote: >> +static int brcm_avs_cpufreq_exit(struct cpufreq_policy *policy) >> +{ >> + struct private_data *priv = policy->driver_data; >> + >> + iounmap(priv->base); >> + iounmap(priv->avs_intr_base); >> + >> + return 0; >> +} > > Shouldn't the above be done in the below routine instead ? Good point. I'll move it. >> +static int brcm_avs_cpufreq_remove(struct platform_device *pdev) >> +{ >> + platform_set_drvdata(pdev, NULL); >> + >> + return cpufreq_unregister_driver(&brcm_avs_driver); >> +} > > -- > viresh