ASoC: atmel: one fix and one cleanup
[linux-2.6-microblaze.git] / sound / soc / atmel / mchp-spdiftx.c
index cb4d014..4850a17 100644 (file)
@@ -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;
 };
 
@@ -765,8 +764,6 @@ 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;
@@ -780,11 +777,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))