We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8819c commit aea6a64Copy full SHA for aea6a64
drivers/gpu/drm/msm/msm_gpu.c
@@ -29,13 +29,14 @@
29
static void bs_init(struct msm_gpu *gpu, struct platform_device *pdev)
30
{
31
struct drm_device *dev = gpu->dev;
32
- struct kgsl_device_platform_data *pdata = pdev->dev.platform_data;
+ struct kgsl_device_platform_data *pdata;
33
34
if (!pdev) {
35
dev_err(dev->dev, "could not find dtv pdata\n");
36
return;
37
}
38
39
+ pdata = pdev->dev.platform_data;
40
if (pdata->bus_scale_table) {
41
gpu->bsc = msm_bus_scale_register_client(pdata->bus_scale_table);
42
DBG("bus scale client: %08x", gpu->bsc);
0 commit comments