diff options
Diffstat (limited to 'sound/soc/sh/rcar/rsnd.h')
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 5aa790170b01..344f9415e669 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -317,7 +317,7 @@ struct rsnd_of_data { | |||
317 | 317 | ||
318 | struct rsnd_priv { | 318 | struct rsnd_priv { |
319 | 319 | ||
320 | struct device *dev; | 320 | struct platform_device *pdev; |
321 | struct rcar_snd_info *info; | 321 | struct rcar_snd_info *info; |
322 | spinlock_t lock; | 322 | spinlock_t lock; |
323 | 323 | ||
@@ -357,7 +357,8 @@ struct rsnd_priv { | |||
357 | int rdai_nr; | 357 | int rdai_nr; |
358 | }; | 358 | }; |
359 | 359 | ||
360 | #define rsnd_priv_to_dev(priv) ((priv)->dev) | 360 | #define rsnd_priv_to_pdev(priv) ((priv)->pdev) |
361 | #define rsnd_priv_to_dev(priv) (&(rsnd_priv_to_pdev(priv)->dev)) | ||
361 | #define rsnd_priv_to_info(priv) ((priv)->info) | 362 | #define rsnd_priv_to_info(priv) ((priv)->info) |
362 | #define rsnd_lock(priv, flags) spin_lock_irqsave(&priv->lock, flags) | 363 | #define rsnd_lock(priv, flags) spin_lock_irqsave(&priv->lock, flags) |
363 | #define rsnd_unlock(priv, flags) spin_unlock_irqrestore(&priv->lock, flags) | 364 | #define rsnd_unlock(priv, flags) spin_unlock_irqrestore(&priv->lock, flags) |