* [PATCH] misc: Remove obsolete cleanup for clientdata
@ 2011-08-25 10:54 Wolfram Sang
[not found] ` <1314269645-18607-1-git-send-email-w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2011-08-25 10:54 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
Cc: Wolfram Sang, Andrew Morton, Kyungmin Park, Minkyu Kang,
Donggeun Kim, linux-kernel-u79uwXL29TY76Z2rM5mHXA
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Cc: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Cc: Minkyu Kang <mk7.kang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Cc: Donggeun Kim <dg77.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
---
drivers/misc/fsa9480.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c
index 5325a7e..22e22ad 100644
--- a/drivers/misc/fsa9480.c
+++ b/drivers/misc/fsa9480.c
@@ -457,7 +457,6 @@ fail2:
if (client->irq)
free_irq(client->irq, NULL);
fail1:
- i2c_set_clientdata(client, NULL);
kfree(usbsw);
return ret;
}
@@ -467,7 +466,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client)
struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client);
if (client->irq)
free_irq(client->irq, NULL);
- i2c_set_clientdata(client, NULL);
sysfs_remove_group(&client->dev.kobj, &fsa9480_group);
device_init_wakeup(&client->dev, 0);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1314269645-18607-1-git-send-email-w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [PATCH] misc: Remove obsolete cleanup for clientdata [not found] ` <1314269645-18607-1-git-send-email-w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2011-08-30 0:47 ` Kyungmin Park 2011-08-30 12:51 ` Jean Delvare 1 sibling, 0 replies; 3+ messages in thread From: Kyungmin Park @ 2011-08-30 0:47 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Andrew Morton, Minkyu Kang, Donggeun Kim, linux-kernel-u79uwXL29TY76Z2rM5mHXA Acked-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> On Thu, Aug 25, 2011 at 7:54 PM, Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote: > A few new i2c-drivers came into the kernel which clear the clientdata-pointer > on exit or error. This is obsolete meanwhile, the core will do it. > > Signed-off-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > Cc: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> > Cc: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Minkyu Kang <mk7.kang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Donggeun Kim <dg77.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- > drivers/misc/fsa9480.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c > index 5325a7e..22e22ad 100644 > --- a/drivers/misc/fsa9480.c > +++ b/drivers/misc/fsa9480.c > @@ -457,7 +457,6 @@ fail2: > if (client->irq) > free_irq(client->irq, NULL); > fail1: > - i2c_set_clientdata(client, NULL); > kfree(usbsw); > return ret; > } > @@ -467,7 +466,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client) > struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); > if (client->irq) > free_irq(client->irq, NULL); > - i2c_set_clientdata(client, NULL); > > sysfs_remove_group(&client->dev.kobj, &fsa9480_group); > device_init_wakeup(&client->dev, 0); > -- > 1.7.5.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] misc: Remove obsolete cleanup for clientdata [not found] ` <1314269645-18607-1-git-send-email-w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2011-08-30 0:47 ` Kyungmin Park @ 2011-08-30 12:51 ` Jean Delvare 1 sibling, 0 replies; 3+ messages in thread From: Jean Delvare @ 2011-08-30 12:51 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Andrew Morton, Kyungmin Park, Minkyu Kang, Donggeun Kim, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Thu, 25 Aug 2011 12:54:04 +0200, Wolfram Sang wrote: > A few new i2c-drivers came into the kernel which clear the clientdata-pointer > on exit or error. This is obsolete meanwhile, the core will do it. > > Signed-off-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > Cc: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> > Cc: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Minkyu Kang <mk7.kang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Donggeun Kim <dg77.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- > drivers/misc/fsa9480.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c > index 5325a7e..22e22ad 100644 > --- a/drivers/misc/fsa9480.c > +++ b/drivers/misc/fsa9480.c > @@ -457,7 +457,6 @@ fail2: > if (client->irq) > free_irq(client->irq, NULL); > fail1: > - i2c_set_clientdata(client, NULL); > kfree(usbsw); > return ret; > } > @@ -467,7 +466,6 @@ static int __devexit fsa9480_remove(struct i2c_client *client) > struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client); > if (client->irq) > free_irq(client->irq, NULL); > - i2c_set_clientdata(client, NULL); > > sysfs_remove_group(&client->dev.kobj, &fsa9480_group); > device_init_wakeup(&client->dev, 0); You'll have to refresh this one, as the context was changed by b89d5f17d4b02ae9f3a691c2cb260e1929c6261b. -- Jean Delvare ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-30 12:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 10:54 [PATCH] misc: Remove obsolete cleanup for clientdata Wolfram Sang
[not found] ` <1314269645-18607-1-git-send-email-w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2011-08-30 0:47 ` Kyungmin Park
2011-08-30 12:51 ` Jean Delvare
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).