[PATCH 12/14] patches: remove call to is_platform_device member of struct soc_camera_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



struct soc_camera_device got the is_platform_device member function in
kernel 3.19.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 .../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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux