aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/firmware_class/firmware_sample_driver.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/Documentation/firmware_class/firmware_sample_driver.c b/Documentation/firmware_class/firmware_sample_driver.c
index 6865cbe075ec..600cdd9ea7db 100644
--- a/Documentation/firmware_class/firmware_sample_driver.c
+++ b/Documentation/firmware_class/firmware_sample_driver.c
@@ -34,8 +34,7 @@ static void sample_probe_default(void)
34 const struct firmware *fw_entry; 34 const struct firmware *fw_entry;
35 printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n"); 35 printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
36 36
37 if(request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0) 37 if (request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0) {
38 {
39 printk(KERN_ERR 38 printk(KERN_ERR
40 "firmware_sample_driver: Firmware not available\n"); 39 "firmware_sample_driver: Firmware not available\n");
41 return; 40 return;
@@ -56,8 +55,7 @@ static void sample_probe_specific(void)
56 55
57 printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n"); 56 printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
58 57
59 if(request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0) 58 if (request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0) {
60 {
61 printk(KERN_ERR 59 printk(KERN_ERR
62 "firmware_sample_driver: Firmware load failed\n"); 60 "firmware_sample_driver: Firmware load failed\n");
63 return; 61 return;
@@ -70,7 +68,7 @@ static void sample_probe_specific(void)
70} 68}
71static void sample_probe_async_cont(const struct firmware *fw, void *context) 69static void sample_probe_async_cont(const struct firmware *fw, void *context)
72{ 70{
73 if(!fw){ 71 if (!fw) {
74 printk(KERN_ERR 72 printk(KERN_ERR
75 "firmware_sample_driver: firmware load failed\n"); 73 "firmware_sample_driver: firmware load failed\n");
76 return; 74 return;
@@ -88,9 +86,8 @@ static void sample_probe_async(void)
88 "sample_driver_fw", &ghost_device, 86 "sample_driver_fw", &ghost_device,
89 "my device pointer", 87 "my device pointer",
90 sample_probe_async_cont); 88 sample_probe_async_cont);
91 if(error){ 89 if (error) {
92 printk(KERN_ERR 90 printk(KERN_ERR "firmware_sample_driver:"
93 "firmware_sample_driver:"
94 " request_firmware_nowait failed\n"); 91 " request_firmware_nowait failed\n");
95 } 92 }
96} 93}
@@ -105,6 +102,7 @@ static int sample_init(void)
105 sample_probe_async(); 102 sample_probe_async();
106 return 0; 103 return 0;
107} 104}
105
108static void __exit sample_exit(void) 106static void __exit sample_exit(void)
109{ 107{
110} 108}