Commit 51c9fa52 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Jialin Zhang
Browse files

ASoC: mchp-spdiftx: remove references to mchp_i2s_caps

stable inclusion
from stable-v5.10.143
commit 9dacdc1d47eda4b0f511b5e5f1a554bc21a0af62
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9dacdc1d47eda4b0f511b5e5f1a554bc21a0af62



--------------------------------

commit 403fcb51 upstream.

Remove references to struct mchp_i2s_caps as they are not used.

Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220727090814.2446111-3-claudiu.beznea@microchip.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8630eabf
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -196,7 +196,6 @@ struct mchp_spdiftx_dev {
	struct clk				*pclk;
	struct clk				*gclk;
	unsigned int				fmt;
	const struct mchp_i2s_caps		*caps;
	int					gclk_enabled:1;
};

@@ -766,8 +765,6 @@ static const struct of_device_id mchp_spdiftx_dt_ids[] = {
MODULE_DEVICE_TABLE(of, mchp_spdiftx_dt_ids);
static int mchp_spdiftx_probe(struct platform_device *pdev)
{
	struct device_node *np = pdev->dev.of_node;
	const struct of_device_id *match;
	struct mchp_spdiftx_dev *dev;
	struct resource *mem;
	struct regmap *regmap;
@@ -781,11 +778,6 @@ static int mchp_spdiftx_probe(struct platform_device *pdev)
	if (!dev)
		return -ENOMEM;

	/* Get hardware capabilities. */
	match = of_match_node(mchp_spdiftx_dt_ids, np);
	if (match)
		dev->caps = match->data;

	/* Map I/O registers. */
	base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);
	if (IS_ERR(base))