Markus Elfring
6106d888a0
pwm: puv3: Delete an error message for a failed memory allocation
...
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net >
Signed-off-by: Thierry Reding <thierry.reding@gmail.com >
2018-03-27 23:27:05 +02:00
Wolfram Sang
f05fae14a1
pwm: drop owner assignment from platform_drivers
...
A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
2014-10-20 16:21:28 +02:00
Thierry Reding
3dd0a90947
pwm: Fill in missing .owner fields
...
Some drivers don't set the .owner fields of the struct device_driver or
struct pwm_ops, which causes the module usage count to become wrong.
Signed-off-by: Thierry Reding <thierry.reding@gmail.com >
2013-06-12 13:18:29 +02:00
Wolfram Sang
362e9cd2f5
drivers/pwm: don't check resource with devm_ioremap_resource
...
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de >
Acked-by: Stephen Warren <swarren@nvidia.com >
2013-05-18 11:55:58 +02:00
Axel Lin
a46ef4d572
pwm: puv3: Remove unused enabled filed from struct puv3_pwm_chip
...
Signed-off-by: Axel Lin <axel.lin@ingics.com >
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de >
2013-04-02 11:40:18 +02:00
Thierry Reding
6d4294d163
pwm: Convert to devm_ioremap_resource()
...
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de >
Acked-by: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-01-22 11:41:57 -08:00
Bill Pemberton
77f37917a6
pwm: remove use of __devexit
...
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Acked-by: Thierry Reding <thierry.reding@avionic-design.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:23:41 -08:00
Bill Pemberton
3e9fe83d27
pwm: remove use of __devinit
...
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Acked-by: Thierry Reding <thierry.reding@avionic-design.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:23:41 -08:00
Bill Pemberton
fd1091125a
pwm: remove use of __devexit_p
...
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Acked-by: Thierry Reding <thierry.reding@avionic-design.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-11-28 12:23:41 -08:00
Thierry Reding
79c11b6fa0
pwm: Move PUV3 PWM driver to PWM framework
...
This commit moves the driver to drivers/pwm and converts it to the new
PWM framework.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de >
Tested-by: Qin Rui <qinrui@mprc.pku.edu.cn >
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn >
2012-10-05 20:56:41 +02:00