Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f8be339c02c1e543eee8e09ffe600c0e61be5898
Commit:     f8be339c02c1e543eee8e09ffe600c0e61be5898
Parent:     4f0234f4f9da485ecb9729af1b88567700fd4767
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Sat Jul 14 00:41:08 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 04:04:45 2007 -0700

    [SPARC64]: Unconditionally register vio_bus_type.
    
    The VIO drivers register themselves unconditionally just
    like those of any other bus type, so to avoid crashes
    on non-VIO systems we need to always register vio_bus_type.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/kernel/vio.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/sparc64/kernel/vio.c b/arch/sparc64/kernel/vio.c
index 8b269aa..49569b4 100644
--- a/arch/sparc64/kernel/vio.c
+++ b/arch/sparc64/kernel/vio.c
@@ -335,6 +335,13 @@ static int __init vio_init(void)
        int err, len;
        u64 root;
 
+       err = bus_register(&vio_bus_type);
+       if (err) {
+               printk(KERN_ERR "VIO: Could not register bus type err=%d\n",
+                      err);
+               return err;
+       }
+
        hp = mdesc_grab();
        if (!hp)
                return 0;
@@ -374,13 +381,6 @@ static int __init vio_init(void)
 
        cdev_cfg_handle = *cfg_handle;
 
-       err = bus_register(&vio_bus_type);
-       if (err) {
-               printk(KERN_ERR "VIO: Could not register bus type err=%d\n",
-                      err);
-               return err;
-       }
-
        create_devices(hp, root);
 
        mdesc_release(hp);
-
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