Commit a95557d5 authored by Manuel Estrada Sainz's avatar Manuel Estrada Sainz Committed by Greg Kroah-Hartman

[PATCH] DRIVER: request_firmware() hotplug interface

parent 77518190
#
# To be sourced from lib/Kconfig
#
config FW_LOADER
tristate "Hotplug firmware loading support"
---help---
This option is provided for the case where no in-kernel-tree modules
require hotplug firmware loading support, but a module built outside
the kernel tree does.
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
obj-y := core.o sys.o interface.o power.o bus.o \ obj-y := core.o sys.o interface.o power.o bus.o \
driver.o class.o platform.o \ driver.o class.o platform.o \
cpu.o firmware.o init.o map.o cpu.o firmware.o init.o map.o
obj-$(CONFIG_FW_LOADER) += firmware_class.o
obj-$(CONFIG_NUMA) += node.o memblk.o obj-$(CONFIG_NUMA) += node.o memblk.o
This diff is collapsed.
#ifndef _LINUX_FIRMWARE_H
#define _LINUX_FIRMWARE_H
#include <linux/module.h>
#include <linux/types.h>
#define FIRMWARE_NAME_MAX 30
struct firmware {
size_t size;
u8 *data;
};
int request_firmware(const struct firmware **fw, const char *name,
struct device *device);
int request_firmware_nowait(
struct module *module,
const char *name, struct device *device, void *context,
void (*cont)(const struct firmware *fw, void *context));
/* Maybe 'device' should be 'struct device *' */
void release_firmware(const struct firmware *fw);
void register_firmware(const char *name, const u8 *data, size_t size);
#endif
...@@ -26,5 +26,7 @@ config ZLIB_DEFLATE ...@@ -26,5 +26,7 @@ config ZLIB_DEFLATE
(PPP_DEFLATE=m || JFFS2_FS=m || CRYPTO_DEFLATE=m) (PPP_DEFLATE=m || JFFS2_FS=m || CRYPTO_DEFLATE=m)
default y if PPP_DEFLATE=y || JFFS2_FS=y || CRYPTO_DEFLATE=y default y if PPP_DEFLATE=y || JFFS2_FS=y || CRYPTO_DEFLATE=y
source "drivers/base/Kconfig.lib"
endmenu endmenu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment