Commit 6ae141718e3f9c7e2c620e999c86612a7f415bb1

Authored by Greg Kroah-Hartman
1 parent e389623a68

misc: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the last of the __dev* markings from the kernel from
a variety of different, tiny, places.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 4 changed files with 4 additions and 5 deletions Side-by-side Diff

... ... @@ -490,7 +490,7 @@
490 490 }
491 491 }
492 492  
493   -static void __devinit fdtable_defer_list_init(int cpu)
  493 +static void fdtable_defer_list_init(int cpu)
494 494 {
495 495 struct fdtable_defer *fddef = &per_cpu(fdtable_defer_list, cpu);
496 496 spin_lock_init(&fddef->lock);
... ... @@ -134,7 +134,7 @@
134 134 any use of code/data previously in these sections would
135 135 most likely result in an oops.
136 136 In the code, functions and variables are annotated with
137   - __init, __devinit, etc. (see the full list in include/linux/init.h),
  137 + __init, __cpuinit, etc. (see the full list in include/linux/init.h),
138 138 which results in the code/data being placed in specific sections.
139 139 The section mismatch analysis is always performed after a full
140 140 kernel build, and enabling this option causes the following
samples/rpmsg/rpmsg_client_sample.c
... ... @@ -64,7 +64,7 @@
64 64 return 0;
65 65 }
66 66  
67   -static void __devexit rpmsg_sample_remove(struct rpmsg_channel *rpdev)
  67 +static void rpmsg_sample_remove(struct rpmsg_channel *rpdev)
68 68 {
69 69 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n");
70 70 }
... ... @@ -81,7 +81,7 @@
81 81 .id_table = rpmsg_driver_sample_id_table,
82 82 .probe = rpmsg_sample_probe,
83 83 .callback = rpmsg_sample_cb,
84   - .remove = __devexit_p(rpmsg_sample_remove),
  84 + .remove = rpmsg_sample_remove,
85 85 };
86 86  
87 87 static int __init rpmsg_client_sample_init(void)
... ... @@ -2079,7 +2079,6 @@
2079 2079 $prototype =~ s/^__inline +//;
2080 2080 $prototype =~ s/^__always_inline +//;
2081 2081 $prototype =~ s/^noinline +//;
2082   - $prototype =~ s/__devinit +//;
2083 2082 $prototype =~ s/__init +//;
2084 2083 $prototype =~ s/__init_or_module +//;
2085 2084 $prototype =~ s/__must_check +//;