const struct firmware *fw_entry;
printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
- if(request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0)
- {
+ if (request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0) {
printk(KERN_ERR
"firmware_sample_driver: Firmware not available\n");
return;
printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");
- if(request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0)
- {
+ if (request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0) {
printk(KERN_ERR
"firmware_sample_driver: Firmware load failed\n");
return;
}
static void sample_probe_async_cont(const struct firmware *fw, void *context)
{
- if(!fw){
+ if (!fw) {
printk(KERN_ERR
"firmware_sample_driver: firmware load failed\n");
return;
"sample_driver_fw", &ghost_device,
"my device pointer",
sample_probe_async_cont);
- if(error){
- printk(KERN_ERR
- "firmware_sample_driver:"
+ if (error) {
+ printk(KERN_ERR "firmware_sample_driver:"
" request_firmware_nowait failed\n");
}
}
sample_probe_async();
return 0;
}
+
static void __exit sample_exit(void)
{
}