Merge tag 'reset-fixes-for-v5.2' of git://git.pengutronix.de/git/pza/linux into arm...
[linux-2.6-microblaze.git] / drivers / reset / core.c
index 21b9bd5..213ff40 100644 (file)
@@ -690,9 +690,6 @@ __reset_control_get_from_lookup(struct device *dev, const char *con_id,
        const char *dev_id = dev_name(dev);
        struct reset_control *rstc = NULL;
 
-       if (!dev)
-               return ERR_PTR(-EINVAL);
-
        mutex_lock(&reset_lookup_mutex);
 
        list_for_each_entry(lookup, &reset_lookup_list, list) {