diff options
author | Christoph Manszewski <c.manszewski@samsung.com> | 2019-02-15 15:35:26 +0100 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2019-02-27 00:27:40 +0000 |
commit | 3e02b040ad3a9467ecb0af269025f01e08d9abc1 (patch) | |
tree | 8554dd9e1ccb483a888f1992f6f7365fb36ecfad /drivers | |
parent | 50616cabfc1dde94b65baabddd4b9ad38c748e95 (diff) | |
download | linux-exynos-3e02b040ad3a9467ecb0af269025f01e08d9abc1.tar.gz linux-exynos-3e02b040ad3a9467ecb0af269025f01e08d9abc1.tar.bz2 linux-exynos-3e02b040ad3a9467ecb0af269025f01e08d9abc1.zip |
Revert "[LOCAL] base/firmware: return -EPROBE_DEFER until rootfs is available"
This reverts commit 1733ede82e9e964a3d5234ef61979ca523e7ba5a.
Signed-off-by: Christoph Manszewski <c.manszewski@samsung.com>
Change-Id: I30441cbd9b4933cab7e1cb6e80d767e4fca65f41
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/base.h | 2 | ||||
-rw-r--r-- | drivers/base/firmware_class.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index eea838ccec6e..d800de650fa5 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -130,6 +130,8 @@ extern void driver_remove_groups(struct device_driver *drv, extern char *make_class_name(const char *name, struct kobject *kobj); extern int devres_release_all(struct device *dev); +extern void device_block_probing(void); +extern void device_unblock_probing(void); /* /sys/devices directory */ extern struct kset *devices_kset; diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 05f966ab541c..4b57cf5bc81d 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c @@ -32,7 +32,6 @@ #include <linux/syscore_ops.h> #include <linux/reboot.h> #include <linux/security.h> -#include <linux/root_dev.h> #include <generated/utsrelease.h> @@ -393,9 +392,6 @@ fw_get_filesystem_firmware(struct device *device, struct firmware_buf *buf) enum kernel_read_file_id id = READING_FIRMWARE; size_t msize = INT_MAX; - if (ROOT_DEV == 0) - return -EPROBE_DEFER; - /* Already populated data member means we're loading into a buffer */ if (buf->data) { id = READING_FIRMWARE_PREALLOC_BUFFER; @@ -1405,9 +1401,6 @@ request_firmware_nowait( { struct firmware_work *fw_work; - if (ROOT_DEV == 0) - return -EPROBE_DEFER; - fw_work = kzalloc(sizeof(struct firmware_work), gfp); if (!fw_work) return -ENOMEM; |