+static int init_ipq5018(struct tsens_priv *priv)
+{
+ int ret;
+ u32 mask;
+
+ init_common(priv);
Please take care of init_common()'s return code. Don't continue init
if init_common() fails.
ok, redundant, will remove.
+ if (!priv->tm_map)
+ return -ENODEV;
Why?