From 36daf76cd90583606105f881d3e228be84696a67 Mon Sep 17 00:00:00 2001 From: Chao Jiang Date: Fri, 4 Mar 2011 17:10:50 +0900 Subject: bluetooth: Fixed ld mismatched symbols The driver data structure referenced a function point which is defined as __init data. This caused symbol mismatch error. This could be fixed by defined driver data with __init macro, otherwise, by cancel __init on probe function. Have this done in a safe way. This file is removed in upstream. It seems that is the only chance to fix it in our own repository. Original-Change-Id: I3eba3578c84d8ec67707a276841d72f98c47267d Reviewed-on: http://git-master/r/20931 Reviewed-by: David Schalig Reviewed-by: Bharat Nihalani Tested-by: Chao Jiang Rebase-Id: R9fb630dbae997619ba5c0e0c337d64d3e1ea0581 --- drivers/bluetooth/bluesleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/bluetooth') diff --git a/drivers/bluetooth/bluesleep.c b/drivers/bluetooth/bluesleep.c index fb9953aa190a..c72bb51105c5 100644 --- a/drivers/bluetooth/bluesleep.c +++ b/drivers/bluetooth/bluesleep.c @@ -584,7 +584,7 @@ static int bluesleep_write_proc_proto(struct file *file, const char *buffer, } -static int __init bluesleep_probe(struct platform_device *pdev) +static int bluesleep_probe(struct platform_device *pdev) { int ret; struct resource *res; -- cgit v1.2.3