summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorChao Jiang <chaoj@nvidia.com>2011-03-04 17:10:50 +0900
committerVarun Colbert <vcolbert@nvidia.com>2011-03-04 18:20:56 -0800
commit06effa3f3704613da74bb2eea86a1c711c9f7187 (patch)
tree37675e224505d2a9586295a41e84a92526395d34 /drivers/bluetooth
parent670f92a641139a15a2f4a3cccf0c816d3892f1f3 (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. 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>
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;