aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-12-15 15:30:20 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2010-12-22 13:56:05 -0800
commite128e86ef9028c3045f7cc7e24332093faec6fd7 (patch)
treec27bad6d551c90d8cb2fe916b74cca9e355b7317
parentb16ec3dc2da6583afd646ab4df5faad40519f7da (diff)
downloadmrst-s0i3-test-e128e86ef9028c3045f7cc7e24332093faec6fd7.tar.gz
mrst-s0i3-test-e128e86ef9028c3045f7cc7e24332093faec6fd7.tar.xz
mrst-s0i3-test-e128e86ef9028c3045f7cc7e24332093faec6fd7.zip
s0i3: add __init to appropriate functions
Add __init to a handful of early functions. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--drivers/idle/mrst_s0i3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/idle/mrst_s0i3.c b/drivers/idle/mrst_s0i3.c
index 59400773ba1..6ad7afc6ba1 100644
--- a/drivers/idle/mrst_s0i3.c
+++ b/drivers/idle/mrst_s0i3.c
@@ -387,7 +387,7 @@ static irqreturn_t s0i3_pmu_irq(int irq, void *dummy)
*/
extern const char s0i3_trampoline_data[], s0i3_trampoline_data_end[];
-void s0i3_reserve_memory(void)
+void __init s0i3_reserve_memory(void)
{
phys_addr_t mem;
size_t size;
@@ -406,7 +406,7 @@ void s0i3_reserve_memory(void)
}
/* Hacky - should be replaced with a registered PCI ID driver */
-static int s0i3_prepare(void)
+static int __init s0i3_prepare(void)
{
int err;
volatile struct mrst_pmu_reg *pmu;