]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/sparc/sbus_drivers.txt
PCI: fix pci_setup_device()'s sprinting into a const buffer
[linux-2.6-omap-h63xx.git] / Documentation / sparc / sbus_drivers.txt
index 4b9351624f134ac0e51d398747a5e48e0e4faba4..eb1e28ad8822f32421db93dd211f1e2be0084488 100644 (file)
@@ -25,8 +25,8 @@ the bits necessary to run your device.  The most commonly
 used members of this structure, and their typical usage,
 will be detailed below.
 
 used members of this structure, and their typical usage,
 will be detailed below.
 
-       Here is a piece of skeleton code for perofming a device
-probe in an SBUS driverunder Linux:
+       Here is a piece of skeleton code for performing a device
+probe in an SBUS driver under Linux:
 
        static int __devinit mydevice_probe_one(struct sbus_dev *sdev)
        {
 
        static int __devinit mydevice_probe_one(struct sbus_dev *sdev)
        {
@@ -67,10 +67,12 @@ probe in an SBUS driverunder Linux:
        MODULE_DEVICE_TABLE(of, mydevice_match);
 
        static struct of_platform_driver mydevice_driver = {
        MODULE_DEVICE_TABLE(of, mydevice_match);
 
        static struct of_platform_driver mydevice_driver = {
-               .name           = "mydevice",
                .match_table    = mydevice_match,
                .probe          = mydevice_probe,
                .remove         = __devexit_p(mydevice_remove),
                .match_table    = mydevice_match,
                .probe          = mydevice_probe,
                .remove         = __devexit_p(mydevice_remove),
+               .driver         = {
+                       .name           = "mydevice",
+               },
        };
 
        static int __init mydevice_init(void)
        };
 
        static int __init mydevice_init(void)
@@ -98,7 +100,7 @@ in your .remove method.
 
        Any memory allocated, registers mapped, IRQs registered,
 etc. must be undone by your .remove method so that all resources
 
        Any memory allocated, registers mapped, IRQs registered,
 etc. must be undone by your .remove method so that all resources
-of your device are relased by the time it returns.
+of your device are released by the time it returns.
 
        You should _NOT_ use the for_each_sbus(), for_each_sbusdev(),
 and for_all_sbusdev() interfaces.  They are deprecated, will be
 
        You should _NOT_ use the for_each_sbus(), for_each_sbusdev(),
 and for_all_sbusdev() interfaces.  They are deprecated, will be