aboutsummaryrefslogtreecommitdiff
path: root/drivers/coresight/coresight-fuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/coresight/coresight-fuse.c')
-rw-r--r--drivers/coresight/coresight-fuse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/coresight/coresight-fuse.c b/drivers/coresight/coresight-fuse.c
index 70e6136a..f146dfb2 100644
--- a/drivers/coresight/coresight-fuse.c
+++ b/drivers/coresight/coresight-fuse.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -303,8 +303,6 @@ static int fuse_probe(struct platform_device *pdev)
drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL);
if (!drvdata)
return -ENOMEM;
- /* Store the driver data pointer for use in exported functions */
- fusedrvdata = drvdata;
drvdata->dev = &pdev->dev;
platform_set_drvdata(pdev, drvdata);
@@ -368,6 +366,9 @@ static int fuse_probe(struct platform_device *pdev)
if (IS_ERR(drvdata->csdev))
return PTR_ERR(drvdata->csdev);
+ /* Store the driver data pointer for use in exported functions */
+ fusedrvdata = drvdata;
+
dev_info(dev, "Fuse initialized\n");
return 0;
}