]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mfd/ti_am335x_tscadc.c
mfd: ti_am335x_tscadc: print error message with dev_err() instead of dev_dbg()
[karo-tx-linux.git] / drivers / mfd / ti_am335x_tscadc.c
index dd4bf5816221a6ed79aed14b16cd42268b98be7d..37cb42ca1be0719055059e08cf7d51f499ced985 100644 (file)
@@ -142,8 +142,8 @@ static      int ti_tscadc_probe(struct platform_device *pdev)
        struct clk              *clk;
        struct device_node      *node = pdev->dev.of_node;
        struct mfd_cell         *cell;
-       struct property         *prop;
-       const __be32            *cur;
+       struct property         *prop;
+       const __be32            *cur;
        u32                     val;
        int                     err, ctrl;
        int                     clock_rate;
@@ -282,8 +282,11 @@ static     int ti_tscadc_probe(struct platform_device *pdev)
 
        err = mfd_add_devices(&pdev->dev, pdev->id, tscadc->cells,
                        tscadc->used_cells, NULL, 0, NULL);
-       if (err < 0)
+       if (err < 0) {
+               dev_err(&pdev->dev, "Failed to add MFD devices\n");
                goto err_disable_clk;
+       }
+       dev_info(&pdev->dev, "TI Touchscreen/ADC driver initialized\n");
 
        device_init_wakeup(&pdev->dev, true);
        platform_set_drvdata(pdev, tscadc);