hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/hwtracing/coresight/coresight-etm.h
....@@ -208,7 +208,6 @@
208208 /**
209209 * struct etm_drvdata - specifics associated to an ETM component
210210 * @base: memory mapped base address for this component.
211
- * @dev: the device entity associated to this component.
212211 * @atclk: optional clock for the core parts of the ETM.
213212 * @csdev: component vitals needed by the framework.
214213 * @spinlock: only one at a time pls.
....@@ -232,7 +231,6 @@
232231 */
233232 struct etm_drvdata {
234233 void __iomem *base;
235
- struct device *dev;
236234 struct clk *atclk;
237235 struct coresight_device *csdev;
238236 spinlock_t spinlock;
....@@ -260,7 +258,7 @@
260258 {
261259 if (drvdata->use_cp14) {
262260 if (etm_writel_cp14(off, val)) {
263
- dev_err(drvdata->dev,
261
+ dev_err(&drvdata->csdev->dev,
264262 "invalid CP14 access to ETM reg: %#x", off);
265263 }
266264 } else {
....@@ -274,7 +272,7 @@
274272
275273 if (drvdata->use_cp14) {
276274 if (etm_readl_cp14(off, &val)) {
277
- dev_err(drvdata->dev,
275
+ dev_err(&drvdata->csdev->dev,
278276 "invalid CP14 access to ETM reg: %#x", off);
279277 }
280278 } else {