lkml.org 
[lkml]   [2017]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1] reset: Make optional stuff optional for all users
Date
There is Device Tree oriented check for optional resource. Of course
it will fail on non-DT platforms.

Remove this check to make things optional for all users.

Fixes: bb475230b8e5 ("reset: make optional functions really optional")
Cc: Ramiro Oliveira <Ramiro.Oliveira@synopsys.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---

The reset framework is too Device Tree oriented, and who knows what
the logic was behind the commit which introduced devm_reset_*()
functions without thinking out of the DT box.

This commit fixes almost all Intel newest boards that have no legacy
UART since UART driver started using this DT-centric framework.

drivers/reset/core.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/reset/core.c b/drivers/reset/core.c
index f1e5e65388bb..62314e663f29 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
@@ -331,9 +331,6 @@ struct reset_control *__of_reset_control_get(struct device_node *node,
int rstc_id;
int ret;

- if (!node)
- return ERR_PTR(-EINVAL);
-
if (id) {
index = of_property_match_string(node,
"reset-names", id);
--
2.11.0
\
 
 \ /
  Last update: 2017-04-03 14:26    [W:0.057 / U:1.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site