Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0b0df6f2079e731c44226a0673b07a166509a5de
Commit:     0b0df6f2079e731c44226a0673b07a166509a5de
Parent:     82da703ee685b69b921b20eb76b50e519ca9956c
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 15 20:55:28 2006 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Fri Dec 15 20:55:28 2006 -0800

    IB/mthca: Use DEFINE_MUTEX() instead of mutex_init()
    
    mthca_device_mutex() can be initialized automatically with
    DEFINE_MUTEX() rather than explicitly calling mutex_init().  This
    saves a bit of text and shrinks the source by a line, so we may as
    well do it....
    
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/hw/mthca/mthca_main.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_main.c 
b/drivers/infiniband/hw/mthca/mthca_main.c
index 711c1b8..44bc6cc 100644
--- a/drivers/infiniband/hw/mthca/mthca_main.c
+++ b/drivers/infiniband/hw/mthca/mthca_main.c
@@ -80,7 +80,7 @@ static int tune_pci = 0;
 module_param(tune_pci, int, 0444);
 MODULE_PARM_DESC(tune_pci, "increase PCI burst from the default set by BIOS if 
nonzero");
 
-struct mutex mthca_device_mutex;
+DEFINE_MUTEX(mthca_device_mutex);
 
 #define MTHCA_DEFAULT_NUM_QP            (1 << 16)
 #define MTHCA_DEFAULT_RDB_PER_QP        (1 << 2)
@@ -1362,8 +1362,6 @@ static int __init mthca_init(void)
 {
        int ret;
 
-       mutex_init(&mthca_device_mutex);
-
        mthca_validate_profile();
 
        ret = mthca_catas_init();
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to