apple-gmux.c (b349e9a916772e867d0f9246d2978799897b2495) apple-gmux.c (156d7d4120e1c860fde667fc30eeae84bc3e7a25)
1/*
2 * Gmux driver for Apple laptops
3 *
4 * Copyright (C) Canonical Ltd. <seth.forshee@canonical.com>
5 * Copyright (C) 2010-2012 Andreas Heider <andreas@meetr.de>
6 * Copyright (C) 2015 Lukas Wunner <lukas@wunner.de>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 691 unchanged lines hidden (view full) ---

700 pr_warn("No GPE found for gmux\n");
701 gmux_data->gpe = -1;
702 }
703
704 apple_gmux_data = gmux_data;
705 init_completion(&gmux_data->powerchange_done);
706 gmux_enable_interrupts(gmux_data);
707
1/*
2 * Gmux driver for Apple laptops
3 *
4 * Copyright (C) Canonical Ltd. <seth.forshee@canonical.com>
5 * Copyright (C) 2010-2012 Andreas Heider <andreas@meetr.de>
6 * Copyright (C) 2015 Lukas Wunner <lukas@wunner.de>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 691 unchanged lines hidden (view full) ---

700 pr_warn("No GPE found for gmux\n");
701 gmux_data->gpe = -1;
702 }
703
704 apple_gmux_data = gmux_data;
705 init_completion(&gmux_data->powerchange_done);
706 gmux_enable_interrupts(gmux_data);
707
708 if (vga_switcheroo_register_handler(&gmux_handler)) {
708 if (vga_switcheroo_register_handler(&gmux_handler, 0)) {
709 ret = -ENODEV;
710 goto err_register_handler;
711 }
712
713 return 0;
714
715err_register_handler:
716 gmux_disable_interrupts(gmux_data);

--- 74 unchanged lines hidden ---
709 ret = -ENODEV;
710 goto err_register_handler;
711 }
712
713 return 0;
714
715err_register_handler:
716 gmux_disable_interrupts(gmux_data);

--- 74 unchanged lines hidden ---