From 28119d9c0a2bd77a2b6fdb918f082a115d8d37de Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 29 Mar 2012 15:23:28 +0300 Subject: video: tegra: host: Move context init outside __init Context handler init functions are referred to from non-init section. The functions should not have __init attribute, even though they're only used in init time. Change-Id: I1b6bca48504fd7989edaa037c4b022a76244b0f6 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/93216 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni Reviewed-by: Ken Adams Reviewed-by: Juha Tukkinen --- drivers/video/tegra/host/gr3d/gr3d_t20.c | 2 +- drivers/video/tegra/host/gr3d/gr3d_t30.c | 2 +- drivers/video/tegra/host/mpe/mpe.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/video') diff --git a/drivers/video/tegra/host/gr3d/gr3d_t20.c b/drivers/video/tegra/host/gr3d/gr3d_t20.c index 3604142aaf20..9ca990f89077 100644 --- a/drivers/video/tegra/host/gr3d/gr3d_t20.c +++ b/drivers/video/tegra/host/gr3d/gr3d_t20.c @@ -347,7 +347,7 @@ static void ctx3d_save_service(struct nvhost_hwctx *nctx) host1x_hwctx_handler(ctx)->syncpt); } -struct nvhost_hwctx_handler * __init nvhost_gr3d_t20_ctxhandler_init( +struct nvhost_hwctx_handler *nvhost_gr3d_t20_ctxhandler_init( u32 syncpt, u32 waitbase, struct nvhost_channel *ch) { diff --git a/drivers/video/tegra/host/gr3d/gr3d_t30.c b/drivers/video/tegra/host/gr3d/gr3d_t30.c index e7329e50e3dd..8ca6b7b44b9e 100644 --- a/drivers/video/tegra/host/gr3d/gr3d_t30.c +++ b/drivers/video/tegra/host/gr3d/gr3d_t30.c @@ -381,7 +381,7 @@ static struct nvhost_hwctx *ctx3d_alloc_v1(struct nvhost_hwctx_handler *h, return NULL; } -struct nvhost_hwctx_handler *__init nvhost_gr3d_t30_ctxhandler_init( +struct nvhost_hwctx_handler *nvhost_gr3d_t30_ctxhandler_init( u32 syncpt, u32 waitbase, struct nvhost_channel *ch) { diff --git a/drivers/video/tegra/host/mpe/mpe.c b/drivers/video/tegra/host/mpe/mpe.c index 28002aa637a7..fb5d23bc613d 100644 --- a/drivers/video/tegra/host/mpe/mpe.c +++ b/drivers/video/tegra/host/mpe/mpe.c @@ -526,7 +526,7 @@ static void ctxmpe_save_service(struct nvhost_hwctx *nctx) h->syncpt); } -struct nvhost_hwctx_handler * __init nvhost_mpe_ctxhandler_init( +struct nvhost_hwctx_handler *nvhost_mpe_ctxhandler_init( u32 syncpt, u32 waitbase, struct nvhost_channel *ch) { -- cgit v1.2.3