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

Commit 122541d6 authored by Brent Hronik's avatar Brent Hronik
Browse files

msm: smd_tty: fix section mismatch



A few methods specified with the __init flag can potentially be called
by methods that don't specify the __init flag. This poses a problem,
since the methods specified by the __init flag are freed after
initialization time.

Remove the __init flag from the methods that can be called after
initialization time.

Change-Id: I0e5d11b937922759b8962955efcc8f68ca849dbc
Signed-off-by: default avatarBrent Hronik <bhronik@codeaurora.org>
parent 1ce07d93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -772,7 +772,7 @@ static int smd_tty_device_init(int idx)
	return ret;
}

static int __init smd_tty_core_init(void)
static int smd_tty_core_init(void)
{
	int ret;
	int n;
@@ -846,7 +846,7 @@ out:
	return ret;
}

static int __init smd_tty_devicetree_init(struct platform_device *pdev)
static int smd_tty_devicetree_init(struct platform_device *pdev)
{
	int ret;
	int idx;