diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-03-25 06:08:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:23:01 -0500 |
commit | 06842415149371127b91d15774cff95dcccc1845 (patch) | |
tree | ab613c84d1bb2cfab6ac090aa351c5ba7addfa02 | |
parent | d12ddde2bbf46b34eae3fb3fd36c0e42832b537c (diff) |
[PATCH] Doc: fix example firmware source code
Fix Documentation/firmware_class/ examples so that they will build.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | Documentation/firmware_class/firmware_sample_driver.c | 3 | ||||
-rw-r--r-- | Documentation/firmware_class/firmware_sample_firmware_class.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Documentation/firmware_class/firmware_sample_driver.c b/Documentation/firmware_class/firmware_sample_driver.c index d3ad2c24490a..ad3edaba4533 100644 --- a/Documentation/firmware_class/firmware_sample_driver.c +++ b/Documentation/firmware_class/firmware_sample_driver.c | |||
@@ -23,7 +23,6 @@ char __init inkernel_firmware[] = "let's say that this is firmware\n"; | |||
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | static struct device ghost_device = { | 25 | static struct device ghost_device = { |
26 | .name = "Ghost Device", | ||
27 | .bus_id = "ghost0", | 26 | .bus_id = "ghost0", |
28 | }; | 27 | }; |
29 | 28 | ||
@@ -92,7 +91,7 @@ static void sample_probe_async(void) | |||
92 | { | 91 | { |
93 | /* Let's say that I can't sleep */ | 92 | /* Let's say that I can't sleep */ |
94 | int error; | 93 | int error; |
95 | error = request_firmware_nowait (THIS_MODULE, | 94 | error = request_firmware_nowait (THIS_MODULE, FW_ACTION_NOHOTPLUG, |
96 | "sample_driver_fw", &ghost_device, | 95 | "sample_driver_fw", &ghost_device, |
97 | "my device pointer", | 96 | "my device pointer", |
98 | sample_probe_async_cont); | 97 | sample_probe_async_cont); |
diff --git a/Documentation/firmware_class/firmware_sample_firmware_class.c b/Documentation/firmware_class/firmware_sample_firmware_class.c index 57b956aecbc5..9e1b0e4051cd 100644 --- a/Documentation/firmware_class/firmware_sample_firmware_class.c +++ b/Documentation/firmware_class/firmware_sample_firmware_class.c | |||
@@ -172,7 +172,6 @@ static void fw_remove_class_device(struct class_device *class_dev) | |||
172 | static struct class_device *class_dev; | 172 | static struct class_device *class_dev; |
173 | 173 | ||
174 | static struct device my_device = { | 174 | static struct device my_device = { |
175 | .name = "Sample Device", | ||
176 | .bus_id = "my_dev0", | 175 | .bus_id = "my_dev0", |
177 | }; | 176 | }; |
178 | 177 | ||