Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4788df4c authored by Alan Jenkins's avatar Alan Jenkins Committed by Len Brown
Browse files

dell-laptop: add __init to init functions

parent ada3248a
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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 */
	/* Final token is a terminator, so we don't want to copy it */
	int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1;
	int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1;
@@ -111,7 +111,7 @@ static void parse_da_table(const struct dmi_header *dm)
	da_num_tokens += tokens;
	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) {
	switch (dm->type) {
	case 0xd4: /* Indexed IO */
	case 0xd4: /* Indexed IO */
@@ -214,7 +214,7 @@ static const struct rfkill_ops dell_rfkill_ops = {
	.query = dell_rfkill_query,
	.query = dell_rfkill_query,
};
};


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