diff --git a/drivers/gpu/host1x/actmon.c b/drivers/gpu/host1x/actmon.c index 51c22310..63974811 100644 --- a/drivers/gpu/host1x/actmon.c +++ b/drivers/gpu/host1x/actmon.c @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -191,6 +192,9 @@ static int host1x_actmon_module_avg_norm_get(void *data, u64 *val) unsigned long client_freq; u32 active_clks, client_clks; + if (!client->ops->get_rate) + return -ENOTSUPP; + active_clks = actmon_module_readl(module, HOST1X_ACTMON_MODULE_AVG_COUNT_REG); client_freq = client->ops->get_rate(client);