Avoid compilation warning on 2.6.28 master
authorMichael Brown <mcb30@etherboot.org>
Tue, 14 Apr 2009 10:46:48 +0000 (11:46 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 14 Apr 2009 10:46:48 +0000 (11:46 +0100)
kernel/quickusb.c

index b5da10f..7d7ea35 100644 (file)
@@ -502,7 +502,8 @@ static int quickusb_register_subdev ( struct quickusb_device *quickusb,
 
        /* Create class device */
        subdev->class_dev = device_create ( quickusb_class, NULL, subdev->dev,
-                                           &interface->dev, subdev->name );
+                                           &interface->dev, "%s",
+                                           subdev->name );
        if ( IS_ERR ( subdev->class_dev ) ) {
                rc = PTR_ERR ( subdev->class_dev );
                goto err_class;