Skip to content

Commit

Permalink
dell-laptop: add __init to init functions
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alan Jenkins authored and Len Brown committed Dec 10, 2009
1 parent ada3248 commit 4788df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/platform/x86/dell-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static const struct dmi_system_id __initdata dell_device_table[] = {
{ }
};

static void parse_da_table(const struct dmi_header *dm)
static void __init parse_da_table(const struct dmi_header *dm)
{
/* Final token is a terminator, so we don't want to copy it */
int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1;
Expand Down Expand Up @@ -111,7 +111,7 @@ static void parse_da_table(const struct dmi_header *dm)
da_num_tokens += tokens;
}

static void find_tokens(const struct dmi_header *dm, void *dummy)
static void __init find_tokens(const struct dmi_header *dm, void *dummy)
{
switch (dm->type) {
case 0xd4: /* Indexed IO */
Expand Down Expand Up @@ -214,7 +214,7 @@ static const struct rfkill_ops dell_rfkill_ops = {
.query = dell_rfkill_query,
};

static int dell_setup_rfkill(void)
static int __init dell_setup_rfkill(void)
{
struct calling_interface_buffer buffer;
int status;
Expand Down

0 comments on commit 4788df4

Please sign in to comment.