Line
Link Here
|
0 |
-- svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h |
0 |
++ svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h |
Lines 105-111
Link Here
|
105 |
class_device_create(svgalib_helper_class, \ |
109 |
class_device_create(svgalib_helper_class, \ |
106 |
MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ |
110 |
MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ |
107 |
&sh_pci_devs[_minor]->dev->dev, _name); |
111 |
&sh_pci_devs[_minor]->dev->dev, _name); |
108 |
#else /* 2.6.15 changed class_device_create */ |
112 |
/* 2.6.15 changed class_device_create */ |
|
|
113 |
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) |
109 |
# define SLH_SYSFS_ADD_CONTROL \ |
114 |
# define SLH_SYSFS_ADD_CONTROL \ |
110 |
class_device_create(svgalib_helper_class, NULL, \ |
115 |
class_device_create(svgalib_helper_class, NULL, \ |
111 |
MKDEV(SVGALIB_HELPER_MAJOR, 0), \ |
116 |
MKDEV(SVGALIB_HELPER_MAJOR, 0), \ |
Lines 115-121
Link Here
|
115 |
class_device_create(svgalib_helper_class, NULL, \ |
120 |
class_device_create(svgalib_helper_class, NULL, \ |
116 |
MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ |
121 |
MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ |
117 |
&sh_pci_devs[_minor]->dev->dev, _name); |
122 |
&sh_pci_devs[_minor]->dev->dev, _name); |
118 |
#endif /* 2.6.15 */ |
123 |
/* 2.6.26 changed class_device_create to device_create */ |
|
|
124 |
#else |
125 |
# define SLH_SYSFS_ADD_CONTROL \ |
126 |
device_create(svgalib_helper_class, NULL, \ |
127 |
MKDEV(SVGALIB_HELPER_MAJOR, 0), \ |
128 |
"svga"); |
129 |
|
130 |
# define SLH_SYSFS_ADD_DEVICE(_name, _minor) \ |
131 |
device_create(svgalib_helper_class, &sh_pci_devs[_minor]->dev->dev, \ |
132 |
MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ |
133 |
_name); |
134 |
#endif |
119 |
|
135 |
|
120 |
# define SLH_SYSFS_REMOVE_DEVICE(i) \ |
136 |
# define SLH_SYSFS_REMOVE_DEVICE(i) \ |
121 |
class_destroy(svgalib_helper_class); |
137 |
class_destroy(svgalib_helper_class); |