Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=39043a5b3d0b1b92b20209b6d401fb70c17177b4
Commit:     39043a5b3d0b1b92b20209b6d401fb70c17177b4
Parent:     c99767974ebd2a719d849fdeaaa1674456f5283f
Author:     Kumar Gala <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 8 02:23:07 2006 -0600
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Fri Dec 8 02:23:07 2006 -0600

    [POWERPC] of_device_register: propagate device_create_file return code
    
    Removed compiler warning about ignoring the return code of 
device_create_file
    in of_device_register.
    
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/of_device.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c
index 8a06724..e921514 100644
--- a/arch/powerpc/kernel/of_device.c
+++ b/arch/powerpc/kernel/of_device.c
@@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev)
        if (rc)
                return rc;
 
-       device_create_file(&ofdev->dev, &dev_attr_devspec);
-
-       return 0;
+       return device_create_file(&ofdev->dev, &dev_attr_devspec);
 }
 
 void of_device_unregister(struct of_device *ofdev)
-
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