The patch titled
     Fix firmware sample code
has been removed from the -mm tree.  Its filename was
     fix-firmware-sample-code.patch

This patch was dropped because it was nacked by the maintainer

------------------------------------------------------
Subject: Fix firmware sample code
From: Arnaud Patard (Rtp) <[EMAIL PROTECTED]>

The firmware_sample_driver driver from Documentation/firmware_class/ is
initializing the ghost device but doesn't register it, leading to a failure
in fw_register_device.  To fix it, one only needs to use device_register
instead of device_initialize.

Signed-off-by: Arnaud Patard <[EMAIL PROTECTED]>
Cc: Greg KH <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 Documentation/firmware_class/firmware_sample_driver.c |   18 ++++++++--
 1 file changed, 15 insertions(+), 3 deletions(-)

diff -puN 
Documentation/firmware_class/firmware_sample_driver.c~fix-firmware-sample-code 
Documentation/firmware_class/firmware_sample_driver.c
--- 
a/Documentation/firmware_class/firmware_sample_driver.c~fix-firmware-sample-code
+++ a/Documentation/firmware_class/firmware_sample_driver.c
@@ -13,13 +13,17 @@
 #include <linux/device.h>
 #include <linux/string.h>
 
-#include "linux/firmware.h"
+#include <linux/firmware.h>
+
+void sample_release(struct device *dev)
+{
+}
 
 static struct device ghost_device = {
        .bus_id    = "ghost0",
+       .release   = sample_release,
 };
 
-
 static void sample_firmware_load(char *firmware, int size)
 {
        u8 buf[size+1];
@@ -97,7 +101,14 @@ static void sample_probe_async(void)
 
 static int sample_init(void)
 {
-       device_initialize(&ghost_device);
+       int err;
+
+       err = device_register(&ghost_device);
+       if (err) {
+               printk(KERN_ERR "device_register failed (%d)\n",err);
+               return err;
+       }
+
        /* since there is no real hardware insertion I just call the
         * sample probe functions here */
        sample_probe_specific();
@@ -107,6 +118,7 @@ static int sample_init(void)
 }
 static void __exit sample_exit(void)
 {
+       device_unregister(&ghost_device);
 }
 
 module_init (sample_init);
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

fix-firmware-sample-code.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to