Thread (22 messages) flat view 22 messages, 8 authors, 2013-03-11

[PATCH 6/9] drm/pci: move drm_pcie_get_speed_cap_mask inside #ifdef CONFIG_PCI

From: festevam@gmail.com (Fabio Estevam)
Date: 2013-02-14 22:49:20
Also in: lkml

On Thu, Feb 14, 2013 at 8:26 PM, Arnd Bergmann [off-list ref] wrote:
commit dd66cc2e1  "drm/pci: Use PCI Express Capability accessors"
introduced the use of the pcie_capability_read_dword function
in the drm_pci code, which is only defined when PCI is enabled.
While most of the file is already hidden away behind an #ifdef
CONFIG_PCI, this function is not, and that now causes a link
error in the ARM imx_v6_v7_defconfig configuration.

Moving the function into the #ifdef section makes this work
again on IMX, which does not have PCI support, and should
have no impact on platforms that do.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Dave Airlie <airlied@redhat.com>
Bjorn has already sent a fix for this problem:
http://www.spinics.net/lists/arm-kernel/msg224425.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help