On Fri, Dec 07, 2012 at 12:15:24AM +0100, Julia Lawall (julia.law...@lip6.fr)
wrote:
> From: Julia Lawall
>
> The various devm_ functions allocate memory that is released when a driver
> detaches. This patch uses these functions for data that is allocated in
> the probe function of a platform
On Thu, Dec 13, 2012 at 12:39:38PM +0300, Dan Carpenter
(dan.carpen...@oracle.com) wrote:
> On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
> > I suppose mdev will be automatically freed, but who will release
> > mdev->clk and other private members of mdev structure?
>
> +
On Thu, 13 Dec 2012, Dan Carpenter wrote:
> On Thu, Dec 13, 2012 at 11:18:53AM +0100, Julia Lawall wrote:
> > On Thu, 13 Dec 2012, Dan Carpenter wrote:
> >
> > > On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
> > > > I suppose mdev will be automatically freed, but who will
On Thu, Dec 13, 2012 at 11:18:53AM +0100, Julia Lawall wrote:
> On Thu, 13 Dec 2012, Dan Carpenter wrote:
>
> > On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
> > > I suppose mdev will be automatically freed, but who will release
> > > mdev->clk and other private members of
On Thu, 13 Dec 2012, Dan Carpenter wrote:
> On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
> > I suppose mdev will be automatically freed, but who will release
> > mdev->clk and other private members of mdev structure?
>
> + mdev->clk = devm_clk_get(>dev, NULL);
>
> ->clk is
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
> I suppose mdev will be automatically freed, but who will release
> mdev->clk and other private members of mdev structure?
+ mdev->clk = devm_clk_get(>dev, NULL);
->clk is now a devm pointer as well.
regards,
dan carpenter
--
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
I suppose mdev will be automatically freed, but who will release
mdev-clk and other private members of mdev structure?
+ mdev-clk = devm_clk_get(pdev-dev, NULL);
-clk is now a devm pointer as well.
regards,
dan carpenter
--
On Thu, 13 Dec 2012, Dan Carpenter wrote:
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
I suppose mdev will be automatically freed, but who will release
mdev-clk and other private members of mdev structure?
+ mdev-clk = devm_clk_get(pdev-dev, NULL);
-clk is now a
On Thu, Dec 13, 2012 at 11:18:53AM +0100, Julia Lawall wrote:
On Thu, 13 Dec 2012, Dan Carpenter wrote:
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
I suppose mdev will be automatically freed, but who will release
mdev-clk and other private members of mdev
On Thu, 13 Dec 2012, Dan Carpenter wrote:
On Thu, Dec 13, 2012 at 11:18:53AM +0100, Julia Lawall wrote:
On Thu, 13 Dec 2012, Dan Carpenter wrote:
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
I suppose mdev will be automatically freed, but who will release
On Thu, Dec 13, 2012 at 12:39:38PM +0300, Dan Carpenter
(dan.carpen...@oracle.com) wrote:
On Wed, Dec 12, 2012 at 01:25:56AM +0400, Evgeniy Polyakov wrote:
I suppose mdev will be automatically freed, but who will release
mdev-clk and other private members of mdev structure?
+ mdev-clk =
On Fri, Dec 07, 2012 at 12:15:24AM +0100, Julia Lawall (julia.law...@lip6.fr)
wrote:
From: Julia Lawall julia.law...@lip6.fr
The various devm_ functions allocate memory that is released when a driver
detaches. This patch uses these functions for data that is allocated in
the probe function
Hi
On Fri, Dec 07, 2012 at 12:15:24AM +0100, Julia Lawall (julia.law...@lip6.fr)
wrote:
> + mdev = devm_kzalloc(>dev, sizeof(struct mxc_w1_device),
> + GFP_KERNEL);
> if (!mdev)
> return -ENOMEM;
>
> - mdev->clk = clk_get(>dev, NULL);
> -
Hi
On Fri, Dec 07, 2012 at 12:15:24AM +0100, Julia Lawall (julia.law...@lip6.fr)
wrote:
+ mdev = devm_kzalloc(pdev-dev, sizeof(struct mxc_w1_device),
+ GFP_KERNEL);
if (!mdev)
return -ENOMEM;
- mdev-clk = clk_get(pdev-dev, NULL);
-
From: Julia Lawall
The various devm_ functions allocate memory that is released when a driver
detaches. This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.
At the same time, this fixes two faults.
From: Julia Lawall julia.law...@lip6.fr
The various devm_ functions allocate memory that is released when a driver
detaches. This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.
At the same time, this
16 matches
Mail list logo