Received: by 10.223.164.202 with SMTP id h10csp323668wrb; Tue, 14 Nov 2017 02:02:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMbWYjBMdv/6HZtvFWDKUWKp4I/I78IKAUUhX/hzf2z2HEKJrXyfRd46Eqrp7DIItd5na493 X-Received: by 10.98.155.129 with SMTP id e1mr7851270pfk.119.1510653745469; Tue, 14 Nov 2017 02:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510653745; cv=none; d=google.com; s=arc-20160816; b=lRrOLKaOp3Z7i4Jp55k79Q6HOLpCmnyq52J6NKCPe8nVThbmrNZkEl7pjf+a5o53Bp th+1Z71CYtc7MgKIicvppaVh0Ch1RtAoZ3ya+0HFoKM85qCbki2O86FiS8LzSMofxnDu rKp0bE9Iso4tS2SVH7v5Q2yJzNIOpVd9oqYnUO59LvFAJWpKPu4VMuaW6uhTFQFUzBlP hF1WbQx7xDUBLMpaPhHWbEJOzBf4PqpmhoLwyeuJgbxDksIR3sJQ9yNiNHBARdhcRS/w 1ZMZYbd2PqmxGQyA/qJWWQAnKW2xri2Ot5CDZeiM8Ohq2psFl1mSQ3F5ai09Psz0hIwl 4ONA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GlBilOK4xrPCZn69luv1A0oG1iUpeKmAhROpfSnoqIA=; b=adLWgwS/EJkiOxOHrm5uRg/EvMyVT16rznzDeHb9Ded1AZ56Os3zdPVTxvhEVSjqPV B0qualEbyTQWj9nUGqbuSXRUZc2x9qYIxPKLhm+8TqyfCTvk1kXZ0y9nk5UuPrcdgvl/ FVYYF3hg476f0u/pxE274d6LtU/Iix383AHbLMc4p0OJ+aZAKHfqaHU5gicM8DZ4NoS7 Hodm1hkhu7ecYKQTGt2ciGRLvuLi217lT1cWsPD7O/goAjdOJ2PDhN7dkI83uUbq7pwk EhAW8gYNeUJ9jvETM0tGR6dgdWv70tAeRkWR3DQas8oRB6fOJfQ64OGGOe2B/mneBQ+F 4Atw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UKeJb7F5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si7453618pgn.241.2017.11.14.02.02.13; Tue, 14 Nov 2017 02:02:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UKeJb7F5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753625AbdKNIxs (ORCPT + 88 others); Tue, 14 Nov 2017 03:53:48 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44920 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129AbdKNIxU (ORCPT ); Tue, 14 Nov 2017 03:53:20 -0500 Received: by mail-wr0-f196.google.com with SMTP id u97so16823047wrc.1 for ; Tue, 14 Nov 2017 00:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GlBilOK4xrPCZn69luv1A0oG1iUpeKmAhROpfSnoqIA=; b=UKeJb7F53lhIEzK0WisHVYW7a+3xsQbxb/OvveUUQK0tiYvpUeiFfViCWaz2D+CAs+ srbVOjElp94NgmY/wR+LkXTlHnxPWL1ke5EXaP8nNp/1aW4DplW2sIKEV9wH5TF0pAwL Luukaq3MPOXEwyMRXSWeqPyfgmeLt4Fq7UYH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GlBilOK4xrPCZn69luv1A0oG1iUpeKmAhROpfSnoqIA=; b=hcpTZKE0bd2amLkspiOYdT112igdOaemUKIxyulS+FL6TwSsStKzIM+6kGT89IUzls joZQmNQsB3YmZTxals8N/HsEcYutPglwT3bNHIUwIxxjdIeBRVbr5l/gHJkG6dJgXppN Xk+URirng6QI5+ladrHpAFuOjBcapf+EIVXfJJy+htvQcFD3yqUDIB5ZOsQECeqkhoQ9 ueskiI7uYidlAQskhP29n3dxiGhOHtgslEYUDpKcle07uwtuRl8bkuN5BIV9clSrcdTR 9wHVma2iZJ9naVh5Vz5IVuQF59EKfyqXvlJ6hSTdYuxYRQ8N61tGzNHgFL0SOIS3t/cf w9Fw== X-Gm-Message-State: AJaThX4TuomB66OWwbrfFfDDG7biSwMOuUlH2h+2/qvvc0A9cTuVaoEb UPGf+ePvI4at3gshHHvGxJTRsA== X-Received: by 10.223.185.33 with SMTP id k30mr9537203wrf.40.1510649599459; Tue, 14 Nov 2017 00:53:19 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.205.30]) by smtp.gmail.com with ESMTPSA id g28sm22894551wra.31.2017.11.14.00.53.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 00:53:18 -0800 (PST) From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, daniel.lezcano@linaro.org, tglx@linutronix.de, ludovic.barre@st.com, julien.thierry@arm.com, sudeep.holla@arm.com, arnd@arndb.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v8 1/6] clocksource: timer_of: rename timer_of_exit to timer_of_cleanup Date: Tue, 14 Nov 2017 09:52:38 +0100 Message-Id: <1510649563-22975-2-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510649563-22975-1-git-send-email-benjamin.gaignard@linaro.org> References: <1510649563-22975-1-git-send-email-benjamin.gaignard@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change function name to something more explicit since it is only used in init error cases. Add __init annotation and description about the function usage. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-of.c | 9 ++++++++- drivers/clocksource/timer-of.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 7c64a5c1..a319904 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -177,7 +177,14 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) return ret; } -void timer_of_exit(struct timer_of *to) +/** + * timer_of_cleanup - release timer_of ressources + * @to: timer_of structure + * + * Release the ressources that has been used in timer_of_init(). + * This function should be called in init error cases + */ +void __init timer_of_cleanup(struct timer_of *to) { if (to->flags & TIMER_OF_IRQ) timer_irq_exit(&to->of_irq); diff --git a/drivers/clocksource/timer-of.h b/drivers/clocksource/timer-of.h index 44f57e0..f521477 100644 --- a/drivers/clocksource/timer-of.h +++ b/drivers/clocksource/timer-of.h @@ -67,6 +67,6 @@ static inline unsigned long timer_of_period(struct timer_of *to) extern int __init timer_of_init(struct device_node *np, struct timer_of *to); -extern void timer_of_exit(struct timer_of *to); +extern void __init timer_of_cleanup(struct timer_of *to); #endif -- 2.7.4 From 1584147566115160696@xxx Wed Nov 15 15:47:27 +0000 2017 X-GM-THRID: 1584147566115160696 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread