public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* Question about framebuffer and kernel module
@ 2008-09-11 14:13 Tiago Maluta
  2008-09-11 14:29 ` Carmelo AMOROSO
  2008-09-11 14:29 ` Carl Shaw
  0 siblings, 2 replies; 3+ messages in thread
From: Tiago Maluta @ 2008-09-11 14:13 UTC (permalink / raw)
  To: linux-sh

Hi,

I'm work with frame buffer devices on ST reference boards using
stmfb-3.0_stm23_0009 with kernel linux-2.6.17.14_stm22_0038.

After system boot I try to load stmcore-display-stx7100.ko

#modprobe stmcore-display-stx7100
stmcore_display_stx7100: Unknown symbol request_firmware

Looking at /devkit/sources/stmfb/stmfb/Linux/stm/coredisplay/devfbOS.c
I've commented the following lines and works.

--- a/devfbOS.c 2008-09-11 10:14:09.000000000 -0300
+++ b/devfbOS.c 2008-09-11 10:15:05.000000000 -0300
@@ -722,7 +722,8 @@
     /* get linux firmware */
     printk ("requesting frm: '%s', %p/%p\n",
             name, &firmware_device, &lnx_firmware);
-    error = request_firmware ((const struct firmware **)
(&lnx_firmware), name, &firmware_device);
+    //error = request_firmware ((const struct firmware **)
(&lnx_firmware), name, &firmware_device);
+    error=1;
     if (unlikely (error))
     {
       kfree (fw);
@@ -748,7 +749,7 @@
     list_add_tail (&fw->fw_list, &fwd->fw_cache);

     /* release linux firmware */
-    release_firmware (lnx_firmware);
+    /* release_firmware (lnx_firmware); */
   }

I know this fix work   because they didn't try to release firmware on module...
But I didn't know why it really works and the implications doing what I do?


Best regards,
Tiago Maluta

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-11 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 14:13 Question about framebuffer and kernel module Tiago Maluta
2008-09-11 14:29 ` Carmelo AMOROSO
2008-09-11 14:29 ` Carl Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox