diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-08-18 04:12:50 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-10-20 14:45:27 -0400 |
commit | 0461aea7ec379b00f4acb5d612bfb2f7a497eb92 (patch) | |
tree | 10ba2ff3fd0b2ffa4423f99483f4050f59104630 /drivers/watchdog | |
parent | 1f897a81915222310374cac1a85c0c7104f16249 (diff) |
watchdog: imx2_wdt: Convert to use regmap framework's endianness method.
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/imx2_wdt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c index 68c3d379ffa8..f37bb05e7ec0 100644 --- a/drivers/watchdog/imx2_wdt.c +++ b/drivers/watchdog/imx2_wdt.c | |||
@@ -191,12 +191,10 @@ static struct regmap_config imx2_wdt_regmap_config = { | |||
191 | 191 | ||
192 | static int __init imx2_wdt_probe(struct platform_device *pdev) | 192 | static int __init imx2_wdt_probe(struct platform_device *pdev) |
193 | { | 193 | { |
194 | struct device_node *np = pdev->dev.of_node; | ||
195 | struct imx2_wdt_device *wdev; | 194 | struct imx2_wdt_device *wdev; |
196 | struct watchdog_device *wdog; | 195 | struct watchdog_device *wdog; |
197 | struct resource *res; | 196 | struct resource *res; |
198 | void __iomem *base; | 197 | void __iomem *base; |
199 | bool big_endian; | ||
200 | int ret; | 198 | int ret; |
201 | u32 val; | 199 | u32 val; |
202 | 200 | ||
@@ -204,10 +202,6 @@ static int __init imx2_wdt_probe(struct platform_device *pdev) | |||
204 | if (!wdev) | 202 | if (!wdev) |
205 | return -ENOMEM; | 203 | return -ENOMEM; |
206 | 204 | ||
207 | big_endian = of_property_read_bool(np, "big-endian"); | ||
208 | if (big_endian) | ||
209 | imx2_wdt_regmap_config.val_format_endian = REGMAP_ENDIAN_BIG; | ||
210 | |||
211 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 205 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
212 | base = devm_ioremap_resource(&pdev->dev, res); | 206 | base = devm_ioremap_resource(&pdev->dev, res); |
213 | if (IS_ERR(base)) | 207 | if (IS_ERR(base)) |