Hamish wrote:
> git://github.com/Lekensteyn/acpi-stuff.git 's acpi_dump_info.c
> fails to build due to missing DEVICE_ACPI_HANDLE(), which was
> removed in linux 3.13; see launchpad bug #1267437.

ok, adding this to the top of acpi_dump_info.c allows it to build.

"""
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0) && defined(ACPI_HANDLE)
#define DEVICE_ACPI_HANDLE(a) ACPI_HANDLE(a)
#endif
"""

result:
trusty$ cat /proc/acpi/dump_info
0000:00:00.0 060000 
0000:00:01.0 060400 \_SB_.PCI0.PEG0
0000:00:02.0 030000 \_SB_.PCI0.GFX0
0000:00:14.0 0c0330 \_SB_.PCI0.XHC_
0000:00:16.0 078000 
0000:00:1a.0 0c0320 \_SB_.PCI0.EHC2
0000:00:1b.0 040300 \_SB_.PCI0.HDEF
0000:00:1c.0 060400 \_SB_.PCI0.RP01
0000:00:1c.4 060400 \_SB_.PCI0.RP05
0000:00:1c.5 060401 \_SB_.PCI0.RP06
0000:00:1c.6 060400 \_SB_.PCI0.RP07
0000:00:1c.7 060400 \_SB_.PCI0.RP08
0000:00:1d.0 0c0320 \_SB_.PCI0.EHC1
0000:00:1f.0 060100 \_SB_.PCI0.LPCB
0000:00:1f.2 010601 \_SB_.PCI0.SAT0
0000:00:1f.3 0c0500 \_SB_.PCI0.SBUS
0000:01:00.0 030000 
0000:03:00.0 0c0330 \_SB_.PCI0.RP05.PXSX
0000:04:00.0 060401 \_SB_.PCI0.RP06.PXSX
0000:06:00.0 020000 \_SB_.PCI0.RP07.PXSX
0000:07:00.0 010601 \_SB_.PCI0.RP08.PXSX


thanks,
Hamish

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1338404

Title:
  bbswitch: fails to find ACPI handle for discrete card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1338404/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to