Permalink
Browse files

shortprint: Change handler function argument according current worque…

…ue API
  • Loading branch information...
1 parent 27a1005 commit dc39c62c3d7b4dfe4958e67e65e6e4c0f085b054 @martinezjavier committed Jan 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 shortprint/shortprint.c
View
@@ -107,7 +107,7 @@ static DECLARE_WAIT_QUEUE_HEAD(shortp_out_queue);
* Feeding the output queue to the device is handled by way of a
* workqueue.
*/
-static void shortp_do_work(void *);
+static void shortp_do_work(struct work_struct *work);
static DECLARE_WORK(shortp_work, shortp_do_work);
static struct workqueue_struct *shortp_workqueue;
@@ -321,7 +321,7 @@ static ssize_t shortp_write(struct file *filp, const char __user *buf, size_t co
*/
-static void shortp_do_work(void *unused)
+static void shortp_do_work(struct work_struct *work)
{
int written;
unsigned long flags;

0 comments on commit dc39c62

Please sign in to comment.