summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-11 20:49:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-11 20:49:09 -0400
commit7c00e8ae041b349992047769af741b67379ce19a (patch)
treee3d504b9523eb6b4109a1873ed804ed03762b26d /drivers/media
parenta2b7ab45b8905b9c1813b0212e82a39d5c081c8a (diff)
parent958da6e3ff446fe558bdf0fd06fb2713539ebeef (diff)
Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC platform updates from Olof Johansson: "Here are the main updates for SoC support (besides DT additions) for ARM 32- and 64-bit platforms. The branch also contains defconfig updates to turn on drivers and options as needed on the various platforms. The largest parts of the delta are from cleanups moving platform data and board file setup of TI platforms to ti-sysc bus drivers. There are also some sweeping changes of eeprom and nand setup on Davinci, i.MX and other platforms. Samsung is removing support for Exynos5440, which was an oddball SoC that hasn't been seen much use in designs. Renesas is adding support for new SoCs (R-Car E3, RZ/G1C and RZ/N1D). Linus Walleij is also removing support for ux500 (Sony Ericsson) U8540/9540 SoCs that never made it to significant mass production and products" * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (133 commits) MAINTAINERS: add NXP linux team maillist as i.MX reviewer ARM: stm32: Don't select DMA unconditionally on STM32MP157C arm64: defconfig: Enable PCIe on msm8996 and db820c ARM: pxa3xx: enable external wakeup pins ARM: pxa: stargate2: use device properties for at24 eeprom arm64: defconfig: Enable HISILICON_LPC arm64: defconfig: enable drivers for Poplar support arm64: defconfig: Enable UFS on msm8996 ARM: berlin: switch to SPDX license identifier arm: berlin: remove non-necessary flush_cache_all() ARM: berlin: extend BG2CD Kconfig entry OMAP: CLK: CLKSRC: Add suspend resume hooks ARM: AM43XX: Add functions to save/restore am43xx control registers ASoC: ams_delta: use GPIO lookup table ARM: OMAP1: ams-delta: add GPIO lookup tables bus: ti-sysc: Fix optional clocks array access ARM: OMAP2+: Make sure LOGICRETSTATE bits are not cleared ARM: OMAP2+: prm44xx: Inroduce cpu_pm notifiers for context save/restore ARM: OMAP2+: prm44xx: Introduce context save/restore for am43 PRCM IO ARM: OMAP2+: powerdomain: Introduce cpu_pm notifiers for context save/restore ...
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/rc/ir-rx51.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c
index 49265f02e772..8a93f7468622 100644
--- a/drivers/media/rc/ir-rx51.c
+++ b/drivers/media/rc/ir-rx51.c
@@ -22,7 +22,6 @@
22#include <linux/hrtimer.h> 22#include <linux/hrtimer.h>
23 23
24#include <media/rc-core.h> 24#include <media/rc-core.h>
25#include <linux/platform_data/media/ir-rx51.h>
26 25
27#define WBUF_LEN 256 26#define WBUF_LEN 256
28 27
@@ -31,7 +30,6 @@ struct ir_rx51 {
31 struct pwm_device *pwm; 30 struct pwm_device *pwm;
32 struct hrtimer timer; 31 struct hrtimer timer;
33 struct device *dev; 32 struct device *dev;
34 struct ir_rx51_platform_data *pdata;
35 wait_queue_head_t wqueue; 33 wait_queue_head_t wqueue;
36 34
37 unsigned int freq; /* carrier frequency */ 35 unsigned int freq; /* carrier frequency */
@@ -130,10 +128,9 @@ static int ir_rx51_tx(struct rc_dev *dev, unsigned int *buffer,
130 ir_rx51->wbuf[count] = -1; /* Insert termination mark */ 128 ir_rx51->wbuf[count] = -1; /* Insert termination mark */
131 129
132 /* 130 /*
133 * Adjust latency requirements so the device doesn't go in too 131 * REVISIT: Adjust latency requirements so the device doesn't go in too
134 * deep sleep states 132 * deep sleep states with pm_qos_add_request().
135 */ 133 */
136 ir_rx51->pdata->set_max_mpu_wakeup_lat(ir_rx51->dev, 50);
137 134
138 ir_rx51_on(ir_rx51); 135 ir_rx51_on(ir_rx51);
139 ir_rx51->wbuf_index = 1; 136 ir_rx51->wbuf_index = 1;
@@ -146,8 +143,7 @@ static int ir_rx51_tx(struct rc_dev *dev, unsigned int *buffer,
146 */ 143 */
147 wait_event_interruptible(ir_rx51->wqueue, ir_rx51->wbuf_index < 0); 144 wait_event_interruptible(ir_rx51->wqueue, ir_rx51->wbuf_index < 0);
148 145
149 /* We can sleep again */ 146 /* REVISIT: Remove pm_qos constraint, we can sleep again */
150 ir_rx51->pdata->set_max_mpu_wakeup_lat(ir_rx51->dev, -1);
151 147
152 return count; 148 return count;
153} 149}
@@ -244,13 +240,6 @@ static int ir_rx51_probe(struct platform_device *dev)
244 struct pwm_device *pwm; 240 struct pwm_device *pwm;
245 struct rc_dev *rcdev; 241 struct rc_dev *rcdev;
246 242
247 ir_rx51.pdata = dev->dev.platform_data;
248
249 if (!ir_rx51.pdata) {
250 dev_err(&dev->dev, "Platform Data is missing\n");
251 return -ENXIO;
252 }
253
254 pwm = pwm_get(&dev->dev, NULL); 243 pwm = pwm_get(&dev->dev, NULL);
255 if (IS_ERR(pwm)) { 244 if (IS_ERR(pwm)) {
256 int err = PTR_ERR(pwm); 245 int err = PTR_ERR(pwm);