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;
#include <linux/syscore_ops.h>
#include <linux/reboot.h>
#include <linux/security.h>
-#include <linux/root_dev.h>
#include <generated/utsrelease.h>
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;
{
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;
extern int (*platform_notify_remove)(struct device *dev);
-extern void device_block_probing(void);
-extern void device_unblock_probing(void);
/*
* get_device - atomically increment the reference count for the device.
s->s_type->name,
sb_rdonly(s) ? " readonly" : "",
MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
- device_block_probing();
- device_unblock_probing();
return 0;
}