Older kernels don't have kobject_uevent_env(), so punt

the event for these older kernels.
main
Alan Hourihane 2008-04-09 22:07:40 +01:00
parent fa116081a9
commit 61a81a043c
1 changed files with 9 additions and 0 deletions

View File

@ -339,6 +339,15 @@ extern unsigned long round_jiffies_relative(unsigned long j);
extern struct pci_dev * pci_get_bus_and_slot(unsigned int bus, unsigned int devfn);
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
static inline int kobject_uevent_env(struct kobject *kobj,
enum kobject_action action,
char *envp[])
{
return 0;
}
#endif
#ifndef PM_EVENT_PRETHAW
#define PM_EVENT_PRETHAW 3
#endif