static int omnibook_acpi_bt_remove(struct acpi_device *device, int type);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
const struct acpi_device_id omnibook_bt_ids[] = {
{"TOS6205", 0},
{"", 0},
enum omnibook_ectype_t omnibook_ectype = NONE;
-static char *laptop_model __initdata;
+static const char *laptop_model __initdata;
static int omnibook_userset = 0;
extern struct omnibook_feature _start_features_driver[];
extern struct omnibook_feature _end_features_driver[];
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
static int __init dmi_matched(struct dmi_system_id *dmi)
+#else
+static int __init dmi_matched(const struct dmi_system_id *dmi)
+#endif
{
omnibook_ectype = (int)dmi->driver_data;
if (dmi->ident)
#define HP_SIGNATURE "Hewlett-Packard"
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
static int __init dmi_matched(struct dmi_system_id *dmi);
+#else
+static int __init dmi_matched(const struct dmi_system_id *dmi);
+#endif
static struct dmi_system_id omnibook_ids[] __initdata = {
{
struct omnibook_feature *omnibook_find_feature(char *name);
void omnibook_report_key(struct input_dev *dev, unsigned int keycode);
+/*
+ * __attribute_used__ is not defined anymore in 2.6.24
+ * but __used appeared only in 2.6.22
+ */
+#ifndef __used
+#define __used __attribute_used__
+#endif
-#define __declared_feature __attribute__ (( __section__(".features"), __aligned__(__alignof__ (struct omnibook_feature)))) __attribute_used__
+#define __declared_feature __attribute__ (( __section__(".features"), __aligned__(__alignof__ (struct omnibook_feature)))) __used
/*
* yet another printk wrapper