From patchwork Mon Oct 13 20:50:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38685 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C82902039B for ; Mon, 13 Oct 2014 20:50:51 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf4501449lbi.2 for ; Mon, 13 Oct 2014 13:50:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=lbgTK4JiYWo3lmTcvMcs66d5FLmQf74k7RZa2nrIlQ4=; b=PXdhF+jWh4W83KPwiQF+JOPn6f2ldrItEWUw+w1JyeW4x4CAreWVXchSo2S1O1CT1w jQY6wURX/T8TC6MDXwD5ENdXBnjNcNY05Tdm3Ir/4Qc5tSACQ4BrAjVfKuYEid2SLt0B kh3Oe41yroX48lNinM/NPcrR5kh1LZNJbt0aJIvLpMwL/d67GjcOBMrroQgGmuuMK1+B h2LTz0pCSn71X6O1ZaKVwNaPrhd/sMfTcuX1pmIg1h4ZwL5BFG1pXT61OPa3gvX7Jmvy r0JMcSwiZb0yzRFcnTKZlfhTXZQKv0kzXfxcvTSC43PXsHJhzWqjUir+w2K9RQ07cEYy tKOQ== X-Gm-Message-State: ALoCoQmMJTnnqxSz4Lf3em67osTIH2Iij0nnUlYsqswPDnaA16jRbL9I2mRmMB68GaD5WVwkI51N X-Received: by 10.152.27.38 with SMTP id q6mr134646lag.5.1413233450472; Mon, 13 Oct 2014 13:50:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.4 with SMTP id ky4ls263856lab.23.gmail; Mon, 13 Oct 2014 13:50:50 -0700 (PDT) X-Received: by 10.152.120.133 with SMTP id lc5mr1014144lab.62.1413233450065; Mon, 13 Oct 2014 13:50:50 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx.google.com with ESMTPS id pf1si23784774lbc.94.2014.10.13.13.50.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Oct 2014 13:50:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so7149489lbi.30 for ; Mon, 13 Oct 2014 13:50:49 -0700 (PDT) X-Received: by 10.112.173.134 with SMTP id bk6mr984184lbc.66.1413233449909; Mon, 13 Oct 2014 13:50:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp288214lbz; Mon, 13 Oct 2014 13:50:49 -0700 (PDT) X-Received: by 10.66.119.175 with SMTP id kv15mr991932pab.30.1413233448502; Mon, 13 Oct 2014 13:50:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si11230914pat.155.2014.10.13.13.50.47 for ; Mon, 13 Oct 2014 13:50:48 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752965AbaJMUup (ORCPT + 27 others); Mon, 13 Oct 2014 16:50:45 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:50936 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbaJMUuo (ORCPT ); Mon, 13 Oct 2014 16:50:44 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9DKoFDG011863; Mon, 13 Oct 2014 15:50:15 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9DKoFqv020030; Mon, 13 Oct 2014 15:50:15 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Mon, 13 Oct 2014 15:50:15 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9DKoEE1020381; Mon, 13 Oct 2014 15:50:15 -0500 From: Felipe Balbi To: CC: David Cohen , Linux Kernel Mailing List , Felipe Balbi Subject: [PATCH] pinctrl: baytrail: add missing module removal support Date: Mon, 13 Oct 2014 15:50:08 -0500 Message-ID: <1413233408-31923-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , pinctrl-baytrail driver provides a proper ->remove() method on its platform_driver definition, however there's no way, currently, to unload the driver due to missing module_exit(). This patch adds module_exit(). Signed-off-by: Felipe Balbi Acked-by: David Cohen --- drivers/pinctrl/pinctrl-baytrail.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-baytrail.c b/drivers/pinctrl/pinctrl-baytrail.c index e12e5b0..3ece001 100644 --- a/drivers/pinctrl/pinctrl-baytrail.c +++ b/drivers/pinctrl/pinctrl-baytrail.c @@ -612,5 +612,10 @@ static int __init byt_gpio_init(void) { return platform_driver_register(&byt_gpio_driver); } - subsys_initcall(byt_gpio_init); + +static void __exit byt_gpio_exit(void) +{ + platform_driver_unregister(&byt_gpio_driver); +} +module_exit(byt_gpio_exit);