Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231809
Collapse All | Expand All

(-)pcfclock-0.44-orig/linux/pcfclock.c (-1 / +7 lines)
Lines 98-104 struct pcfclock_struct { Link Here
98
98
99
static struct pcfclock_struct pcfclock_table[PCFCLOCK_NO];
99
static struct pcfclock_struct pcfclock_table[PCFCLOCK_NO];
100
100
101
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
101
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
102
#  define CLASS_CREATE(owner, name) class_create(owner, name)
103
#  define CLASS_DESTROY(class) class_destroy(class)
104
#  define CLASS_DEVICE_CREATE(class, dev, device, fmt, rest) device_create(class, device, dev, fmt, rest)
105
#  define CLASS_DEVICE_DESTROY(class, dev) device_destroy(class, dev)
106
static struct class *pcfclock_class;
107
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
102
#  define CLASS_CREATE(owner, name) class_create(owner, name)
108
#  define CLASS_CREATE(owner, name) class_create(owner, name)
103
#  define CLASS_DESTROY(class) class_destroy(class)
109
#  define CLASS_DESTROY(class) class_destroy(class)
104
#  define CLASS_DEVICE_CREATE(class, dev, device, fmt, rest) class_device_create(class, NULL, dev, device, fmt, rest)
110
#  define CLASS_DEVICE_CREATE(class, dev, device, fmt, rest) class_device_create(class, NULL, dev, device, fmt, rest)

Return to bug 231809