]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.22/gma500-remove-annoying-deprecation-warning.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.22 / gma500-remove-annoying-deprecation-warning.patch
CommitLineData
596791dc
GKH
1From 166c5a6ef765653848161e6f4af81c05e4b3ecf6 Mon Sep 17 00:00:00 2001
2From: Linus Torvalds <torvalds@linux-foundation.org>
3Date: Mon, 4 Apr 2016 12:38:46 -0700
4Subject: gma500: remove annoying deprecation warning
5
6From: Linus Torvalds <torvalds@linux-foundation.org>
7
8commit 166c5a6ef765653848161e6f4af81c05e4b3ecf6 upstream.
9
10In commit e45708976aea ("drm/dp-helper: Move the legacy helpers to
11gma500") the legacy i2c helpers were moved to the only remaining user of
12them, the gma500 driver. Together with that move, i2c_dp_aux_add_bus()
13was marked deprecated and started warning about its remaining use.
14
15It's now been a year and a half of annoying warning, and apparently
16nobody cares enough about gma500 to try to move it along to the more
17modern models.
18
19Get rid of the warning - if even the gma500 people don't care enough,
20then they should certainly not spam other innocent developers with a
21warning that might hide other, much more real issues.
22
23Cc: Daniel Vetter <daniel.vetter@intel.com>
24Cc: Alan Cox <alan@linux.intel.com>
25Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
26Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27
28---
29 drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32--- a/drivers/gpu/drm/gma500/cdv_intel_dp.c
33+++ b/drivers/gpu/drm/gma500/cdv_intel_dp.c
34@@ -220,7 +220,7 @@ i2c_dp_aux_prepare_bus(struct i2c_adapte
35 * FIXME: This is the old dp aux helper, gma500 is the last driver that needs to
36 * be ported over to the new helper code in drm_dp_helper.c like i915 or radeon.
37 */
38-static int __deprecated
39+static int
40 i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
41 {
42 int error;