Linux-Next discussions
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Magnus Damm <damm@igel.co.jp>, Paul Mundt <lethal@linux-sh.org>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Subject: linux-next: manual merge of the v4l-dvb tree with the sh tree
Date: Fri, 28 Aug 2009 10:11:41 +1000	[thread overview]
Message-ID: <20090828101141.a41b453e.sfr@canb.auug.org.au> (raw)

Hi Mauro,

Today's linux-next merge of the v4l-dvb tree got a conflict in
drivers/media/video/sh_mobile_ceu_camera.c between commit
6d1386c6b8db54ac8d94c01194e0c27cd538532b ("v4l2: Runtime PM for SuperH
Mobile CEU") from the sh tree and commits
96d62ae620121fbf00228c925afc4439782f77e5 ("V4L/DVB (12506): soc-camera:
convert to platform device") and 7d2d23b9101115774c2b6ce5891235a4ba38ed53
("V4L/DVB (12510): soc-camera: (partially) convert to v4l2-(sub)dev API")
from the v4l-dvb tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/media/video/sh_mobile_ceu_camera.c
index 61c47b8,9cdac58..0000000
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@@ -356,11 -405,7 +404,7 @@@ static int sh_mobile_ceu_add_device(str
  		 "SuperH Mobile CEU driver attached to camera %d\n",
  		 icd->devnum);
  
- 	ret = icd->ops->init(icd);
- 	if (ret)
- 		goto err;
- 
 -	clk_enable(pcdev->clk);
 +	pm_runtime_get_sync(ici->dev);
  
  	ceu_write(pcdev, CAPSR, 1 << 16); /* reset */
  	while (ceu_read(pcdev, CSTSR) & 1)
@@@ -394,11 -439,9 +438,9 @@@ static void sh_mobile_ceu_remove_device
  	}
  	spin_unlock_irqrestore(&pcdev->lock, flags);
  
 -	clk_disable(pcdev->clk);
 +	pm_runtime_put_sync(ici->dev);
  
- 	icd->ops->release(icd);
- 
- 	dev_info(&icd->dev,
+ 	dev_info(icd->dev.parent,
  		 "SuperH Mobile CEU driver detached from camera %d\n",
  		 icd->devnum);
  
@@@ -860,12 -1713,16 +1711,12 @@@ static int __devinit sh_mobile_ceu_prob
  		goto exit_release_mem;
  	}
  
 -	snprintf(clk_name, sizeof(clk_name), "ceu%d", pdev->id);
 -	pcdev->clk = clk_get(&pdev->dev, clk_name);
 -	if (IS_ERR(pcdev->clk)) {
 -		dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name);
 -		err = PTR_ERR(pcdev->clk);
 -		goto exit_free_irq;
 -	}
 +	pm_suspend_ignore_children(&pdev->dev, true);
 +	pm_runtime_enable(&pdev->dev);
 +	pm_runtime_resume(&pdev->dev);
  
  	pcdev->ici.priv = pcdev;
- 	pcdev->ici.dev = &pdev->dev;
+ 	pcdev->ici.v4l2_dev.dev = &pdev->dev;
  	pcdev->ici.nr = pdev->id;
  	pcdev->ici.drv_name = dev_name(&pdev->dev);
  	pcdev->ici.ops = &sh_mobile_ceu_host_ops;
@@@ -924,10 -1767,9 +1775,10 @@@ static struct dev_pm_ops sh_mobile_ceu_
  static struct platform_driver sh_mobile_ceu_driver = {
  	.driver 	= {
  		.name	= "sh_mobile_ceu",
 +		.pm	= &sh_mobile_ceu_dev_pm_ops,
  	},
  	.probe		= sh_mobile_ceu_probe,
- 	.remove		= sh_mobile_ceu_remove,
+ 	.remove		= __exit_p(sh_mobile_ceu_remove),
  };
  
  static int __init sh_mobile_ceu_init(void)

                 reply	other threads:[~2009-08-28  0:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090828101141.a41b453e.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=damm@igel.co.jp \
    --cc=g.liakhovetski@gmx.de \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=mchehab@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox