drivers: misc: nct: fix section mismatch warning
Deepak Nibade [Wed, 26 Sep 2012 13:19:00 +0000 (18:19 +0530)]
fix warning due to section mismatch in nct1008_probe
and nct1008_debuginit

bug 1038578

Change-Id: I9bd9bb44afc06b06defefcc0880e60881ae7f42e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/138972
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/misc/nct1008.c

index a271469..f6a1ce7 100644 (file)
@@ -440,7 +440,7 @@ static const struct file_operations debug_fops = {
        .release        = single_release,
 };
 
-static int __init nct1008_debuginit(struct nct1008_data *nct)
+static int __devinit nct1008_debuginit(struct nct1008_data *nct)
 {
        int err = 0;
        struct dentry *d;
@@ -467,7 +467,7 @@ end:
        return err;
 }
 #else
-static int __init nct1008_debuginit(struct nct1008_data *nct)
+static int __devinit nct1008_debuginit(struct nct1008_data *nct)
 {
        return 0;
 }