From: Dave Airlie Date: Tue, 5 Apr 2016 23:39:01 +0000 (+1000) Subject: Merge tag 'topic/drm-misc-2016-04-01' of git://anongit.freedesktop.org/drm-intel... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7c8e54440bcae3f883ca8801f6558fe29bf0198;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Merge tag 'topic/drm-misc-2016-04-01' of git://anongit.freedesktop.org/drm-intel into drm-next * tag 'topic/drm-misc-2016-04-01' of git://anongit.freedesktop.org/drm-intel: drm: Add new DCS commands in the enum list drm: Make uapi headers C89 pendantic compliant drm/atomic: export drm_atomic_helper_wait_for_fences() drm: Untangle __KERNEL__ guards drm: Move DRM_MODE_OBJECT_* to uapi headers drm: align #include directives with libdrm in uapi headers drm: Make drm.h uapi header safe for C++ vgacon: dummy implementation for vgacon_text_force drm/sysfs: Nuke TV/DVI property files drm/ttm: Remove TTM_HAS_AGP drm: bridge/dw-hdmi: Remove pre_enable/post_disable dummy funcs Revert "drm: Don't pass negative delta to ktime_sub_ns()" drm/atmel: Fixup drm_connector_/unplug/unregister/_all drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all() drm: bridge: Make (pre/post) enable/disable callbacks optional --- e7c8e54440bcae3f883ca8801f6558fe29bf0198 diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index f1e17d60055a,fba20bd59cfa..93462aea9faa --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@@ -555,8 -539,6 +555,7 @@@ static struct pci_driver amdgpu_kms_pci static int __init amdgpu_init(void) { + amdgpu_sync_init(); - #ifdef CONFIG_VGA_CONSOLE if (vgacon_text_force()) { DRM_ERROR("VGACON disables amdgpu kernel modesetting.\n"); return -EINVAL; diff --cc include/drm/drm_crtc.h index e0170bf80bb0,dc5cbf2b09aa..8cb377c5eb93 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@@ -2254,13 -2242,9 +2244,13 @@@ int drm_connector_register(struct drm_c void drm_connector_unregister(struct drm_connector *connector); extern void drm_connector_cleanup(struct drm_connector *connector); -extern unsigned int drm_connector_index(struct drm_connector *connector); +static inline unsigned drm_connector_index(struct drm_connector *connector) +{ + return connector->connector_id; +} + - /* helper to unplug all connectors from sysfs for device */ - extern void drm_connector_unplug_all(struct drm_device *dev); + /* helper to unregister all connectors from sysfs for device */ + extern void drm_connector_unregister_all(struct drm_device *dev); extern int drm_bridge_add(struct drm_bridge *bridge); extern void drm_bridge_remove(struct drm_bridge *bridge);