diff options
| author | Simon Glass <[email protected]> | 2020-12-22 19:30:28 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2021-01-05 12:24:40 -0700 |
| commit | 0fd3d91152df5bb6c5f7b9ee68f01a9a1c9a875d (patch) | |
| tree | 1dbc5b936b98393e343cc99a40382b2734ac778e /drivers/timer/timer-uclass.c | |
| parent | 12559f5bab3e43b603dccfa6c354ffd7da03249c (diff) | |
dm: Use access methods for dev/uclass private data
Most drivers use these access methods but a few do not. Update them.
In some cases the access is not permitted, so mark those with a FIXME tag
for the maintainer to check.
Signed-off-by: Simon Glass <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Acked-by: Pratyush Yadav <[email protected]>
Diffstat (limited to 'drivers/timer/timer-uclass.c')
| -rw-r--r-- | drivers/timer/timer-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index ab535553273..8e63c17e9f3 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -40,7 +40,7 @@ int notrace timer_get_count(struct udevice *dev, u64 *count) unsigned long notrace timer_get_rate(struct udevice *dev) { - struct timer_dev_priv *uc_priv = dev->uclass_priv; + struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); return uc_priv->clock_rate; } |
