msm: kgsl: Set busmon driver data

This links the busmon devfreq device to kgsl device
which is de-referenced in kgsl_busmon_target() in
order to propagate bus votes.

Change-Id: I1ac3f81e546e3fd6be6051a202e0d49db07978ee
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This commit is contained in:
Harshdeep Dhatt 2020-01-23 11:09:02 -07:00
commit 5d8bb9574f

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2010-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/devfreq_cooling.h>
@ -685,6 +685,7 @@ static void pwrscale_busmon_create(struct kgsl_device *device,
dev->parent = &pdev->dev;
dev_set_name(dev, "kgsl-busmon");
dev_set_drvdata(dev, device);
if (device_register(dev))
return;