| .. | .. |
|---|
| 208 | 208 | /** |
|---|
| 209 | 209 | * struct etm_drvdata - specifics associated to an ETM component |
|---|
| 210 | 210 | * @base: memory mapped base address for this component. |
|---|
| 211 | | - * @dev: the device entity associated to this component. |
|---|
| 212 | 211 | * @atclk: optional clock for the core parts of the ETM. |
|---|
| 213 | 212 | * @csdev: component vitals needed by the framework. |
|---|
| 214 | 213 | * @spinlock: only one at a time pls. |
|---|
| .. | .. |
|---|
| 232 | 231 | */ |
|---|
| 233 | 232 | struct etm_drvdata { |
|---|
| 234 | 233 | void __iomem *base; |
|---|
| 235 | | - struct device *dev; |
|---|
| 236 | 234 | struct clk *atclk; |
|---|
| 237 | 235 | struct coresight_device *csdev; |
|---|
| 238 | 236 | spinlock_t spinlock; |
|---|
| .. | .. |
|---|
| 260 | 258 | { |
|---|
| 261 | 259 | if (drvdata->use_cp14) { |
|---|
| 262 | 260 | if (etm_writel_cp14(off, val)) { |
|---|
| 263 | | - dev_err(drvdata->dev, |
|---|
| 261 | + dev_err(&drvdata->csdev->dev, |
|---|
| 264 | 262 | "invalid CP14 access to ETM reg: %#x", off); |
|---|
| 265 | 263 | } |
|---|
| 266 | 264 | } else { |
|---|
| .. | .. |
|---|
| 274 | 272 | |
|---|
| 275 | 273 | if (drvdata->use_cp14) { |
|---|
| 276 | 274 | if (etm_readl_cp14(off, &val)) { |
|---|
| 277 | | - dev_err(drvdata->dev, |
|---|
| 275 | + dev_err(&drvdata->csdev->dev, |
|---|
| 278 | 276 | "invalid CP14 access to ETM reg: %#x", off); |
|---|
| 279 | 277 | } |
|---|
| 280 | 278 | } else { |
|---|