mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
ASoC: dwc: Use ops to get platform data
Use of_device_get_match_data() to get platform data. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Link: https://lore.kernel.org/r/20230821144151.207339-3-xingyu.wu@starfivetech.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
206110c74c
commit
d6d6c513f5
@ -691,7 +691,7 @@ static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev,
|
|||||||
|
|
||||||
static int dw_i2s_probe(struct platform_device *pdev)
|
static int dw_i2s_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
const struct i2s_platform_data *pdata = pdev->dev.platform_data;
|
const struct i2s_platform_data *pdata = of_device_get_match_data(&pdev->dev);
|
||||||
struct dw_i2s_dev *dev;
|
struct dw_i2s_dev *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
int ret, irq;
|
int ret, irq;
|
||||||
|
Loading…
Reference in New Issue
Block a user