summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-11-22 19:34:55 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2015-11-24 00:08:21 +0100
commitd031b236e3872ea0cb42bad58667ce80ce1bb9ea (patch)
tree187e889e01ee2fd11b54a20aa4b5fedc017cd96e /patches
parentd826681ffd4cab8b54b524bc369e26e986c7d8c2 (diff)
patches: remove call to is_platform_device member of struct soc_camera_device
struct soc_camera_device got the is_platform_device member function in kernel 3.19. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/collateral-evolutions/media/0008-no-is_platform_device/si4713.patch14
1 files changed, 14 insertions, 0 deletions
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 00000000..811e47f1
--- /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);