diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-08 12:46:37 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-09 20:02:53 +0300 |
commit | 6420c24a30006e2fdbc292f88d37db56ca28f6e8 (patch) | |
tree | 8048b424d6992582c2cc791d5819cb527ccb24dc /sound/soc/intel/skylake/skl-pcm.c | |
parent | 1508f32f1adb220e61d1b7839e35d93ebee89f58 (diff) | |
download | linux-6420c24a30006e2fdbc292f88d37db56ca28f6e8.tar.xz |
ASoC: intel: Avoid non-standard macro usage
Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro. The macro didn't give any better readability.
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20191108094641.20086-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/intel/skylake/skl-pcm.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c index 6bd14f65fe71..8b9abb79a69e 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -1314,7 +1314,7 @@ static int skl_platform_soc_new(struct snd_soc_component *component, size = MAX_PREALLOC_SIZE; snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, - snd_dma_pci_data(skl->pci), + &skl->pci->dev, size, MAX_PREALLOC_SIZE); } |