watchdog: imx2_wdt: Convert to use regmap framework's endianness method.
authorXiubo Li <Li.Xiubo@freescale.com>
Mon, 18 Aug 2014 08:12:50 +0000 (16:12 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 20 Oct 2014 18:45:27 +0000 (20:45 +0200)
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.txt
drivers/watchdog/imx2_wdt.c

index e52ba2da868ce120daf7348aa15cdda02fcc34af..8dab6fd024aa4edb889b880db02225e13cb44c61 100644 (file)
@@ -7,7 +7,8 @@ Required properties:
 
 Optional property:
 - big-endian: If present the watchdog device's registers are implemented
-  in big endian mode, otherwise in little mode.
+  in big endian mode, otherwise in native mode(same with CPU), for more
+  detail please see: Documentation/devicetree/bindings/regmap/regmap.txt.
 
 Examples:
 
index 68c3d379ffa8c599333af45abc1b0841fd10059e..f37bb05e7ec0b06b81effaf94e3779ce580d36f0 100644 (file)
@@ -191,12 +191,10 @@ static struct regmap_config imx2_wdt_regmap_config = {
 
 static int __init imx2_wdt_probe(struct platform_device *pdev)
 {
-       struct device_node *np = pdev->dev.of_node;
        struct imx2_wdt_device *wdev;
        struct watchdog_device *wdog;
        struct resource *res;
        void __iomem *base;
-       bool big_endian;
        int ret;
        u32 val;
 
@@ -204,10 +202,6 @@ static int __init imx2_wdt_probe(struct platform_device *pdev)
        if (!wdev)
                return -ENOMEM;
 
-       big_endian = of_property_read_bool(np, "big-endian");
-       if (big_endian)
-               imx2_wdt_regmap_config.val_format_endian = REGMAP_ENDIAN_BIG;
-
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(base))