]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - Documentation/driver-model/driver.txt
bnx2: annotate bp->phy_lock functions
[mv-sheeva.git] / Documentation / driver-model / driver.txt
index 7c26bfae4ba0d4475e2d9d87578c69a34f16bcab..82132169d47a837fc55ea9d53555abc29b2c7b5d 100644 (file)
@@ -14,8 +14,8 @@ struct device_driver {
         int     (*probe)        (struct device * dev);
         int     (*remove)       (struct device * dev);
 
-        int     (*suspend)      (struct device * dev, pm_message_t state, u32 level);
-        int     (*resume)       (struct device * dev, u32 level);
+        int     (*suspend)      (struct device * dev, pm_message_t state);
+        int     (*resume)       (struct device * dev);
 };
 
 
@@ -178,7 +178,7 @@ the driver to that device.
 
 A driver's probe() may return a negative errno value to indicate that
 the driver did not bind to this device, in which case it should have
-released all reasources it allocated.
+released all resources it allocated.
 
        int     (*remove)       (struct device * dev);
 
@@ -194,11 +194,11 @@ device; i.e. anything in the device's driver_data field.
 If the device is still present, it should quiesce the device and place
 it into a supported low-power state.
 
-       int     (*suspend)      (struct device * dev, pm_message_t state, u32 level);
+       int     (*suspend)      (struct device * dev, pm_message_t state);
 
 suspend is called to put the device in a low power state.
 
-       int     (*resume)       (struct device * dev, u32 level);
+       int     (*resume)       (struct device * dev);
 
 Resume is used to bring a device back from a low power state.