summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorChao Jiang <chaoj@nvidia.com>2011-03-04 17:10:50 +0900
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:10 -0800
commit36daf76cd90583606105f881d3e228be84696a67 (patch)
tree4e93761d2c53fc9d08c59f6262d0e8924b3e0fa0 /drivers/bluetooth
parentaeebc772543f0040e8baf6a9200d3af93e928d42 (diff)
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 <dschalig@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Chao Jiang <chaoj@nvidia.com> Rebase-Id: R9fb630dbae997619ba5c0e0c337d64d3e1ea0581
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bluesleep.c2
1 files changed, 1 insertions, 1 deletions
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;