From: Thierry Reding <thierry.reding@avionic-design.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
Bill Pemberton <wfp5p@virginia.edu>, Greg KH <greg@kroah.com>,
"Philip, Avinash" <avinashphilip@ti.com>
Subject: Re: linux-next: manual merge of the pwm tree with the driver-core tree
Date: Thu, 29 Nov 2012 07:46:34 +0100 [thread overview]
Message-ID: <20121129064634.GC28582@avionic-0098.adnet.avionic-design.de> (raw)
In-Reply-To: <20121129162730.57ed3756a11ceb2f93f08cdd@canb.auug.org.au>
[-- Attachment #1: Type: text/plain, Size: 2517 bytes --]
On Thu, Nov 29, 2012 at 04:27:30PM +1100, Stephen Rothwell wrote:
> Hi Thierry,
>
> Today's linux-next merge of the pwm tree got a conflict in
> drivers/pwm/pwm-tiehrpwm.c between commit 3e9fe83d278c ("pwm: remove use
> of __devinit") from the driver-core tree and commit 53ad9e8d3703 ("pwm:
> tiehrpwm: Add device-tree binding") from the pwm tree.
>
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required).
Also looking good, thanks.
Thierry
> --
> Cheers,
> Stephen Rothwell sfr@canb.auug.org.au
>
> diff --cc drivers/pwm/pwm-tiehrpwm.c
> index 9ffd389,542d5f3..0000000
> --- a/drivers/pwm/pwm-tiehrpwm.c
> +++ b/drivers/pwm/pwm-tiehrpwm.c
> @@@ -392,7 -403,13 +403,13 @@@ static const struct pwm_ops ehrpwm_pwm_
> .owner = THIS_MODULE,
> };
>
> + static const struct of_device_id ehrpwm_of_match[] = {
> + { .compatible = "ti,am33xx-ehrpwm" },
> + {},
> + };
> + MODULE_DEVICE_TABLE(of, ehrpwm_of_match);
> +
> -static int __devinit ehrpwm_pwm_probe(struct platform_device *pdev)
> +static int ehrpwm_pwm_probe(struct platform_device *pdev)
> {
> int ret;
> struct resource *r;
> @@@ -439,11 -471,29 +471,29 @@@
> }
>
> pm_runtime_enable(&pdev->dev);
> + pm_runtime_get_sync(&pdev->dev);
> +
> + status = pwmss_submodule_state_change(pdev->dev.parent,
> + PWMSS_EPWMCLK_EN);
> + if (!(status & PWMSS_EPWMCLK_EN_ACK)) {
> + dev_err(&pdev->dev, "PWMSS config space clock enable failed\n");
> + ret = -EINVAL;
> + goto pwmss_clk_failure;
> + }
> +
> + pm_runtime_put_sync(&pdev->dev);
> +
> platform_set_drvdata(pdev, pc);
> return 0;
> +
> + pwmss_clk_failure:
> + pm_runtime_put_sync(&pdev->dev);
> + pm_runtime_disable(&pdev->dev);
> + pwmchip_remove(&pc->chip);
> + return ret;
> }
>
> -static int __devexit ehrpwm_pwm_remove(struct platform_device *pdev)
> +static int ehrpwm_pwm_remove(struct platform_device *pdev)
> {
> struct ehrpwm_pwm_chip *pc = platform_get_drvdata(pdev);
>
> @@@ -454,10 -512,12 +512,12 @@@
>
> static struct platform_driver ehrpwm_pwm_driver = {
> .driver = {
> - .name = "ehrpwm",
> + .name = "ehrpwm",
> + .owner = THIS_MODULE,
> + .of_match_table = ehrpwm_of_match,
> },
> .probe = ehrpwm_pwm_probe,
> - .remove = __devexit_p(ehrpwm_pwm_remove),
> + .remove = ehrpwm_pwm_remove,
> };
>
> module_platform_driver(ehrpwm_pwm_driver);
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-11-29 6:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 5:27 linux-next: manual merge of the pwm tree with the driver-core tree Stephen Rothwell
2012-11-29 6:46 ` Thierry Reding [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-29 5:29 Stephen Rothwell
2012-11-29 6:48 ` Thierry Reding
2012-11-29 5:25 Stephen Rothwell
2012-11-29 6:45 ` Thierry Reding
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=20121129064634.GC28582@avionic-0098.adnet.avionic-design.de \
--to=thierry.reding@avionic-design.de \
--cc=avinashphilip@ti.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=wfp5p@virginia.edu \
/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;
as well as URLs for NNTP newsgroup(s).