Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87131
b: refs/heads/master
c: fbab976
h: refs/heads/master
i:
  87129: d2490f2
  87127: 3e3af08
v: v3
  • Loading branch information
James Bottomley authored and Greg Kroah-Hartman committed Mar 10, 2008
1 parent 6777175 commit a4fc6fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 661b4e89daf10e3f65a1086fd95c7a84720ccdd2
refs/heads/master: fbab976d7ce4556d4212d554f766dae461d22e16
23 changes: 23 additions & 0 deletions trunk/include/linux/firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ struct firmware {
size_t size;
u8 *data;
};

struct device;

#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
int request_firmware(const struct firmware **fw, const char *name,
struct device *device);
int request_firmware_nowait(
Expand All @@ -19,4 +22,24 @@ int request_firmware_nowait(
void (*cont)(const struct firmware *fw, void *context));

void release_firmware(const struct firmware *fw);
#else
static inline int request_firmware(const struct firmware **fw,
const char *name,
struct device *device)
{
return -EINVAL;
}
static inline int request_firmware_nowait(
struct module *module, int uevent,
const char *name, struct device *device, void *context,
void (*cont)(const struct firmware *fw, void *context))
{
return -EINVAL;
}

static inline void release_firmware(const struct firmware *fw)
{
}
#endif

#endif

0 comments on commit a4fc6fd

Please sign in to comment.