[renesas-drivers:topic/gen3-modemr-syscon-v1 14/41] drivers/media/i2c/tc358743.c:1786:22: error: too few arguments to function 'devm_gpiod_get'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/gen3-modemr-syscon-v1
head:   dbe77a0e3216be44aeb55396d415b56f1df25bf3
commit: cf154c485cd1d565e67bf9762f8538ea794ab27e [14/41] Merge remote-tracking branch 'media-next/master' into base
config: x86_64-allmodconfig (attached as .config)
reproduce:
        git checkout cf154c485cd1d565e67bf9762f8538ea794ab27e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/i2c/tc358743.c: In function 'tc358743_probe_of':
>> drivers/media/i2c/tc358743.c:1786:22: error: too few arguments to function 'devm_gpiod_get'
     state->reset_gpio = devm_gpiod_get(dev, "reset");
                         ^
   In file included from drivers/media/i2c/tc358743.c:34:0:
   include/linux/gpio/consumer.h:73:32: note: declared here
    struct gpio_desc *__must_check devm_gpiod_get(struct device *dev,
                                   ^

vim +/devm_gpiod_get +1786 drivers/media/i2c/tc358743.c

25614824 Philipp Zabel 2015-07-17  1770  	 * them based on link frequency and resolution.
25614824 Philipp Zabel 2015-07-17  1771  	 */
25614824 Philipp Zabel 2015-07-17  1772  	if (bps_pr_lane != 594000000U)
25614824 Philipp Zabel 2015-07-17  1773  		dev_warn(dev, "untested bps per lane: %u bps\n", bps_pr_lane);
25614824 Philipp Zabel 2015-07-17  1774  	state->pdata.lineinitcnt = 0xe80;
25614824 Philipp Zabel 2015-07-17  1775  	state->pdata.lptxtimecnt = 0x003;
25614824 Philipp Zabel 2015-07-17  1776  	/* tclk-preparecnt: 3, tclk-zerocnt: 20 */
25614824 Philipp Zabel 2015-07-17  1777  	state->pdata.tclk_headercnt = 0x1403;
25614824 Philipp Zabel 2015-07-17  1778  	state->pdata.tclk_trailcnt = 0x00;
25614824 Philipp Zabel 2015-07-17  1779  	/* ths-preparecnt: 3, ths-zerocnt: 1 */
25614824 Philipp Zabel 2015-07-17  1780  	state->pdata.ths_headercnt = 0x0103;
25614824 Philipp Zabel 2015-07-17  1781  	state->pdata.twakeup = 0x4882;
25614824 Philipp Zabel 2015-07-17  1782  	state->pdata.tclk_postcnt = 0x008;
25614824 Philipp Zabel 2015-07-17  1783  	state->pdata.ths_trailcnt = 0x2;
25614824 Philipp Zabel 2015-07-17  1784  	state->pdata.hstxvregcnt = 0;
25614824 Philipp Zabel 2015-07-17  1785  
25614824 Philipp Zabel 2015-07-17 @1786  	state->reset_gpio = devm_gpiod_get(dev, "reset");
25614824 Philipp Zabel 2015-07-17  1787  	if (IS_ERR(state->reset_gpio)) {
25614824 Philipp Zabel 2015-07-17  1788  		dev_err(dev, "failed to get reset gpio\n");
25614824 Philipp Zabel 2015-07-17  1789  		ret = PTR_ERR(state->reset_gpio);
25614824 Philipp Zabel 2015-07-17  1790  		goto disable_clk;
25614824 Philipp Zabel 2015-07-17  1791  	}
25614824 Philipp Zabel 2015-07-17  1792  
25614824 Philipp Zabel 2015-07-17  1793  	tc358743_gpio_reset(state);
25614824 Philipp Zabel 2015-07-17  1794  

:::::: The code at line 1786 was first introduced by commit
:::::: 25614824685247e00b786032a504f10bfab347b1 [media] tc358743: support probe from device tree

:::::: TO: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux