* [PATCH] lcd_mipid: workqueue fixes
@ 2007-01-08 10:14 Arnaud Patard
2007-01-09 23:34 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Patard @ 2007-01-08 10:14 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 129 bytes --]
This patch fixes the build of the lcd_mipid in current omap -git.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mipid_workqueue.patch --]
[-- Type: text/x-patch, Size: 1591 bytes --]
---
drivers/video/omap/lcd_mipid.c | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)
Index: linux-omap-2.6/drivers/video/omap/lcd_mipid.c
===================================================================
--- linux-omap-2.6.orig/drivers/video/omap/lcd_mipid.c 2007-01-07 20:13:21.000000000 +0100
+++ linux-omap-2.6/drivers/video/omap/lcd_mipid.c 2007-01-07 20:53:37.000000000 +0100
@@ -67,7 +67,7 @@ struct mipid_device {
struct lcd_panel panel;
struct workqueue_struct *esd_wq;
- struct work_struct esd_work;
+ struct delayed_work esd_work;
void (*esd_check)(struct mipid_device *m);
};
@@ -390,9 +390,9 @@ static void mipid_esd_stop_check(struct
cancel_rearming_delayed_workqueue(md->esd_wq, &md->esd_work);
}
-static void mipid_esd_work(void *data)
+static void mipid_esd_work(struct work_struct *work)
{
- struct mipid_device *md = data;
+ struct mipid_device *md = container_of(work, struct mipid_device, esd_work.work);
mutex_lock(&md->mutex);
md->esd_check(md);
@@ -468,7 +468,7 @@ static int mipid_init(struct lcd_panel *
dev_err(&md->spi->dev, "can't create ESD workqueue\n");
return -ENOMEM;
}
- INIT_WORK(&md->esd_work, mipid_esd_work, md);
+ INIT_DELAYED_WORK(&md->esd_work, mipid_esd_work);
mutex_init(&md->mutex);
md->enabled = panel_enabled(md);
@@ -558,7 +558,7 @@ static int mipid_spi_probe(struct spi_de
struct mipid_device *md;
int r;
- md = kzalloc(sizeof(*md), SLAB_KERNEL);
+ md = kzalloc(sizeof(*md), GFP_KERNEL);
if (md == NULL) {
dev_err(&md->spi->dev, "out of memory\n");
return -ENOMEM;
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lcd_mipid: workqueue fixes
2007-01-08 10:14 [PATCH] lcd_mipid: workqueue fixes Arnaud Patard
@ 2007-01-09 23:34 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-01-09 23:34 UTC (permalink / raw)
To: Arnaud Patard; +Cc: linux-omap-open-source
* Arnaud Patard <arnaud.patard@rtp-net.org> [070108 02:15]:
>
> This patch fixes the build of the lcd_mipid in current omap -git.
>
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> ---
> ---
> drivers/video/omap/lcd_mipid.c | 10 5 + 5 - 0 !
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> Index: linux-omap-2.6/drivers/video/omap/lcd_mipid.c
> ===================================================================
> --- linux-omap-2.6.orig/drivers/video/omap/lcd_mipid.c 2007-01-07 20:13:21.000000000 +0100
> +++ linux-omap-2.6/drivers/video/omap/lcd_mipid.c 2007-01-07 20:53:37.000000000 +0100
> @@ -67,7 +67,7 @@ struct mipid_device {
> struct lcd_panel panel;
>
> struct workqueue_struct *esd_wq;
> - struct work_struct esd_work;
> + struct delayed_work esd_work;
> void (*esd_check)(struct mipid_device *m);
> };
>
> @@ -390,9 +390,9 @@ static void mipid_esd_stop_check(struct
> cancel_rearming_delayed_workqueue(md->esd_wq, &md->esd_work);
> }
>
> -static void mipid_esd_work(void *data)
> +static void mipid_esd_work(struct work_struct *work)
> {
> - struct mipid_device *md = data;
> + struct mipid_device *md = container_of(work, struct mipid_device, esd_work.work);
>
> mutex_lock(&md->mutex);
> md->esd_check(md);
> @@ -468,7 +468,7 @@ static int mipid_init(struct lcd_panel *
> dev_err(&md->spi->dev, "can't create ESD workqueue\n");
> return -ENOMEM;
> }
> - INIT_WORK(&md->esd_work, mipid_esd_work, md);
> + INIT_DELAYED_WORK(&md->esd_work, mipid_esd_work);
> mutex_init(&md->mutex);
>
> md->enabled = panel_enabled(md);
> @@ -558,7 +558,7 @@ static int mipid_spi_probe(struct spi_de
> struct mipid_device *md;
> int r;
>
> - md = kzalloc(sizeof(*md), SLAB_KERNEL);
> + md = kzalloc(sizeof(*md), GFP_KERNEL);
> if (md == NULL) {
> dev_err(&md->spi->dev, "out of memory\n");
> return -ENOMEM;
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-09 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 10:14 [PATCH] lcd_mipid: workqueue fixes Arnaud Patard
2007-01-09 23:34 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox