[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 12/14] patches: remove call to is_platform_device member of struct soc_camera_device
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2015-11-23 23:11:02
Message-ID: 1448320264-15070-13-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]
struct soc_camera_device got the is_platform_device member function in
kernel 3.19.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
.../media/0008-no-is_platform_device/si4713.patch | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 patches/collateral-evolutions/media/0008-no-is_platform_device/si4713.patch
diff --git a/patches/collateral-evolutions/media/0008-no-is_platform_device/si4713.patch \
b/patches/collateral-evolutions/media/0008-no-is_platform_device/si4713.patch new \
file mode 100644 index 0000000..811e47f
--- /dev/null
+++ b/patches/collateral-evolutions/media/0008-no-is_platform_device/si4713.patch
@@ -0,0 +1,14 @@
+--- a/drivers/media/radio/si4713/si4713.c
++++ b/drivers/media/radio/si4713/si4713.c
+@@ -1605,7 +1605,11 @@ static int si4713_probe(struct i2c_clien
+ goto free_ctrls;
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
+ if (!np && (!pdata || !pdata->is_platform_device))
++#else
++ if (!np && !pdata)
++#endif
+ return 0;
+
+ si4713_pdev = platform_device_alloc("radio-si4713", -1);
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic