summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorBo Yan <byan@nvidia.com>2013-03-07 18:12:01 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:03:10 -0700
commitb44525f85fedebb6f7a8f89a8690a51163180391 (patch)
tree9effb4d7f9ffcbbd375615ef066098bb8ff767dd /drivers/watchdog
parenta574d8e949dfcb46c0f49794f0402fe6bba9f299 (diff)
watchdog: tegra: Only support one wdt device
Change-Id: I91dd3214092ab5b450e74bc5bf772ee02f6b432e Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/207770 (cherry picked from commit 17d14202ad24baec56574b52001cc7ba4c625b9c) Reviewed-on: http://git-master/r/210112 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/tegra_wdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/watchdog/tegra_wdt.c b/drivers/watchdog/tegra_wdt.c
index 79ca4c704037..a2923d2a63e2 100644
--- a/drivers/watchdog/tegra_wdt.c
+++ b/drivers/watchdog/tegra_wdt.c
@@ -3,7 +3,7 @@
*
* watchdog driver for NVIDIA tegra internal watchdog
*
- * Copyright (c) 2012-2013, NVIDIA Corporation.
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
*
* based on drivers/watchdog/softdog.c and drivers/watchdog/omap_wdt.c
*
@@ -394,8 +394,8 @@ static int tegra_wdt_probe(struct platform_device *pdev)
struct tegra_wdt *wdt;
int ret = 0;
- if (pdev->id < -1 && pdev->id > 3) {
- dev_err(&pdev->dev, "only IDs 3:0 supported\n");
+ if ((pdev->id < -1) || (pdev->id > 0)) {
+ dev_err(&pdev->dev, "Only support IDs -1 and 0\n");
return -ENODEV;
}