Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1567484

Re: [PATCH 2/5] gpio: 104-idi-48: Utilize devm_ functions in driver probe callback

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/5] gpio: 104-idi-48: Utilize devm_ functions in driver probe callback
Date Thu, 26 Jan 2017 16:00:02 +0100
Message-ID <t3TGO-cu-9@gated-at.bofh.it> (permalink)
References <t3fzI-kX-11@gated-at.bofh.it> <t3fzI-kX-9@gated-at.bofh.it>
X-Original-To William Breathitt Gray <vilhelm.gray@gmail.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vUW37ntzK+gINyIP5TF2ogpJlX8CT6aAwZHF7z+o6xo=; b=AubpC9/ufDqbzvFJLzMeXJJW26mH0zXV2AzKpos/AVba95xAvGJFtYH7UnYY9Jp/XZ i3KRlHH04FSdlyM/IEIEZABmG7rsijhJ4cjI06FCoKp9JNDuqOLa4jeqhISzvm3gRxIR lFP/Iw8lxf1gO1dG91A8kn462m6gQ6IUU2Mks=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vUW37ntzK+gINyIP5TF2ogpJlX8CT6aAwZHF7z+o6xo=; b=Zx6cZGGQtj21poWAvNmVgSsqUZNpN+hbHlsUkKFJbaZGxHhFiVYuk8CaxAxnGE30A8 rqua3eatGTxn2ZvktgxT6RQOyJ1rsA8oLoWfm+f6Ci/S+3azMf/WJCga/bkFwHQhs8Qb ZiPZFv5wR6fa6LAjpYpXVkD7pRe16leKWKCw2rKvHzo7+Qcj7j3YMx1Le9uxEswUPANR bG/77M/JR+Lxv1xTZS4oxVZn5a+BNTeH2+yGxA5WU4CW8lBUoZby2mIn3d/YXC5ANqak 5KkrR16PoqOhMWgTCJbv9u9+O58+ZKE19O6I10qkGTdIw4QYS2D3Rw7Nfxr+2m8IApri mW9g==
X-Gm-Message-State AIkVDXJWkGJv0JWVHQPLPCgVOIYeZu+tzTU709eFkBLJBFfaRhhchIIYCdObFaRQ3y38TxJbDLiyxXm7k8wGoaIY
X-Received by 10.107.15.12 with SMTP id x12mr2972356ioi.61.1485442433012; Thu, 26 Jan 2017 06:53:53 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 17
Organization linux.* mail to news gateway
X-Original-Cc Alexandre Courbot <gnurou@gmail.com>, "linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
X-Original-Date Thu, 26 Jan 2017 15:53:52 +0100
X-Original-Message-ID <CACRpkdbtGjTJ84mJ8TzUysAvkiJTtiH0ef5PoWn=JnsDqn5yXA@mail.gmail.com>
X-Original-References <cover.1485287208.git.vilhelm.gray@gmail.com> <9867e73be56728749f123534b6ef144269cdac9c.1485287208.git.vilhelm.gray@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1567484

Show key headers only | View raw


On Tue, Jan 24, 2017 at 9:00 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:

> The devm_ resource manager functions allow memory to be automatically
> released when a device is unbound. This patch takes advantage of the
> resource manager functions and replaces the gpiochip_add_data call and
> request_irq call with the devm_gpiochip_add_data call and
> devm_request_irq call respectively. In addition, the idi_48_remove
> function has been removed as no longer necessary due to the use of the
> relevant devm_ resource manager functions.
>
> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

Patch applied.

Yours,
Linus Walleij

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/5] gpio: 104-idi-48: Utilize devm_ functions in driver probe callback William Breathitt Gray <vilhelm.gray@gmail.com> - 2017-01-24 21:10 +0100
  Re: [PATCH 2/5] gpio: 104-idi-48: Utilize devm_ functions in driver  probe callback Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 16:00 +0100

csiph-web