firmware: add firmware_request_nowarn() - load firmware without warnings
[linux-2.6-microblaze.git] / include / linux / firmware.h
index 4105041..2dd566c 100644 (file)
@@ -42,6 +42,8 @@ struct builtin_fw {
 #if defined(CONFIG_FW_LOADER) || (defined(CONFIG_FW_LOADER_MODULE) && defined(MODULE))
 int request_firmware(const struct firmware **fw, const char *name,
                     struct device *device);
+int firmware_request_nowarn(const struct firmware **fw, const char *name,
+                           struct device *device);
 int request_firmware_nowait(
        struct module *module, bool uevent,
        const char *name, struct device *device, gfp_t gfp, void *context,
@@ -59,6 +61,14 @@ static inline int request_firmware(const struct firmware **fw,
 {
        return -EINVAL;
 }
+
+static inline int firmware_request_nowarn(const struct firmware **fw,
+                                         const char *name,
+                                         struct device *device)
+{
+       return -EINVAL;
+}
+
 static inline int request_firmware_nowait(
        struct module *module, bool uevent,
        const char *name, struct device *device, gfp_t gfp, void *context,