Skip to content

Commit 403fcb5

Browse files
claudiubezneabroonie
authored andcommitted
ASoC: mchp-spdiftx: remove references to mchp_i2s_caps
Remove references to struct mchp_i2s_caps as they are not used. Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 768ac4f commit 403fcb5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sound/soc/atmel/mchp-spdiftx.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ struct mchp_spdiftx_dev {
196196
struct clk *pclk;
197197
struct clk *gclk;
198198
unsigned int fmt;
199-
const struct mchp_i2s_caps *caps;
200199
int gclk_enabled:1;
201200
};
202201

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

784-
/* Get hardware capabilities. */
785-
match = of_match_node(mchp_spdiftx_dt_ids, np);
786-
if (match)
787-
dev->caps = match->data;
788-
789781
/* Map I/O registers. */
790782
base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);
791783
if (IS_ERR(base))

0 commit comments

Comments
 (0)