[PATCH] radio-wl1273: remove unused wl1273_device->work

From: Tejun Heo
Date: Mon Jan 24 2011 - 09:23:24 EST


wl1273_device->work is unused. Remove it along with the spurious
flush_scheduled_work() call in wl1273_fm_module_exit().

Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
Cc: Matti Aaltonen <matti.j.aaltonen@xxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
---
drivers/media/radio/radio-wl1273.c | 5 -----
1 file changed, 5 deletions(-)

Index: work/drivers/media/radio/radio-wl1273.c
===================================================================
--- work.orig/drivers/media/radio/radio-wl1273.c
+++ work/drivers/media/radio/radio-wl1273.c
@@ -67,7 +67,6 @@ struct wl1273_device {

/* RDS */
unsigned int rds_on;
- struct delayed_work work;

wait_queue_head_t read_queue;
struct mutex lock; /* for serializing fm radio operations */
@@ -1112,9 +1111,6 @@ static int wl1273_fm_rds_off(struct wl12
if (r)
goto out;

- /* stop rds reception */
- cancel_delayed_work(&radio->work);
-
/* Service pending read */
wake_up_interruptible(&radio->read_queue);

@@ -2319,7 +2315,6 @@ module_init(wl1273_fm_module_init);

static void __exit wl1273_fm_module_exit(void)
{
- flush_scheduled_work();
platform_driver_unregister(&wl1273_fm_radio_driver);
pr_info(DRIVER_DESC ", Exiting.\n");
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/