Skip to content

Commit

Permalink
firmware: move firmware_class from Documentation/ to samples/
Browse files Browse the repository at this point in the history
Move the firmware_class sample drivers to samples/ so that they are
buildable and can be maintained.

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
rddunlap authored and gregkh committed Apr 20, 2008
1 parent 3612e06 commit d289bf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void sample_probe_default(void)
"firmware_sample_driver: Firmware not available\n");
return;
}

sample_firmware_load(fw_entry->data, fw_entry->size);

release_firmware(fw_entry);
Expand All @@ -62,7 +62,7 @@ static void sample_probe_specific(void)
"firmware_sample_driver: Firmware load failed\n");
return;
}

/* request_firmware blocks until userspace finished, so at
* this point the firmware should be already in the device */

Expand All @@ -89,7 +89,7 @@ static void sample_probe_async(void)
"my device pointer",
sample_probe_async_cont);
if(error){
printk(KERN_ERR
printk(KERN_ERR
"firmware_sample_driver:"
" request_firmware_nowait failed\n");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static ssize_t firmware_loading_store(struct class_device *class_dev,
int prev_loading = fw_priv->loading;

fw_priv->loading = simple_strtol(buf, NULL, 10);

switch(fw_priv->loading){
case -1:
/* abort load an panic */
Expand Down Expand Up @@ -152,7 +152,7 @@ static int fw_setup_class_device(struct class_device *class_dev,
}

goto out;

error_remove_data:
sysfs_remove_bin_file(&class_dev->kobj, &firmware_attr_data);
error_unreg_class_dev:
Expand Down Expand Up @@ -202,6 +202,6 @@ static void __exit firmware_sample_exit(void)
kfree(fw_priv);
kfree(class_dev);
}

module_init(firmware_sample_init);
module_exit(firmware_sample_exit);

0 comments on commit d289bf7

Please sign in to comment.