All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Gud <gud@eth.net>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH 3/3] unified spinlock initialization
Date: Fri, 11 Mar 2005 14:34:54 +0000	[thread overview]
Message-ID: <4231A9BE.1040008@eth.net> (raw)
In-Reply-To: <20050311143030.GC3028@neon>

Hi,

   Unify the spinlock initialization as far as possible.

   Do consider applying.

Signed-off-by: Amit Gud <gud@eth.net>

--- ../kernels/linux-2.6.11/drivers/media/dvb/dibusb/dvb-dibusb-pid.c   
2005-03-10 12:03:49.000000000 +0530
+++ kj-2.6.11/drivers/media/dvb/dibusb/dvb-dibusb-pid.c 2005-03-11 
19:25:41.942775232 +0530
@@ -21,7 +21,7 @@ int dibusb_pid_list_init(struct usb_dibu

        deb_xfer("initializing %d pids for the 
pid_list.\n",dib->dibdev->dev_cl->demod->pid_filter_count);

-       dib->pid_list_lock = SPIN_LOCK_UNLOCKED;
+       spin_lock_init(&dib->pid_list_lock);
        
memset(dib->pid_list,0,dib->dibdev->dev_cl->demod->pid_filter_count*(sizeof(struct 
dibusb_pid)));
        for (i=0; i < dib->dibdev->dev_cl->demod->pid_filter_count; i++) {
                dib->pid_list[i].index = i;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

      reply	other threads:[~2005-03-11 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 14:30 [KJ] [PATCH 3/3] unified spinlock initialization Tobias Klauser
2005-03-11 14:34 ` Amit Gud [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4231A9BE.1040008@eth.net \
    --to=gud@eth.net \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.