Browse files

asus-switcher: Fix client register compile

Looks like the reprobe arg went in after v2.6.37.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information...
1 parent 340c452 commit bca53f14e323619e8ce065fea96015d4c32125b9 @awilliam committed Apr 21, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 asus-switcheroo.c
View
6 asus-switcheroo.c
@@ -115,7 +115,7 @@ static int asus_switcheroo_acpi_mux(acpi_handle handle)
return 0;
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
static void asus_switcheroo_force_nouveau_reprobe(void)
{
void *dev = pci_get_drvdata(discrete_dev);
@@ -145,7 +145,7 @@ static int asus_switcheroo_switchto(enum vga_switcheroo_client_id id)
}
ret = asus_switcheroo_dsm_call(dsm_handle, DSM_LED, dsm_arg);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
if (id == VGA_SWITCHEROO_DIS && !dummy_client)
asus_switcheroo_force_nouveau_reprobe();
#endif
@@ -306,7 +306,7 @@ static int __init asus_switcheroo_init(void)
vga_switcheroo_register_handler(&asus_dsm_handler);
if (dummy_client)
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
vga_switcheroo_register_client(discrete_dev,
asus_switcheroo_set_state, NULL,
asus_switcheroo_can_switch);

0 comments on commit bca53f1

Please sign in to comment.