Even in this case, the variable is an int on old kernels.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
#else
static inline void usb_autopm_get_interface_no_resume(struct usb_interface *intf)
{
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
atomic_inc(&intf->pm_usage_cnt);
+#else
+ intf->pm_usage_cnt++;
+#endif
}
static inline void usb_autopm_put_interface_no_suspend(struct usb_interface *intf)
{
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
atomic_dec(&intf->pm_usage_cnt);
+#else
+ intf->pm_usage_cnt--;
+#endif
}
#endif /* CONFIG_USB_SUSPEND */
#endif /* < 2.6.33 */