Messages in this thread | | | From | Chao Xie <> | Subject | [PATCH V4 0/3] pwm: pxa: bug fix and device tree support | Date | Sun, 5 May 2013 21:29:58 -0400 |
| |
The patches fix some bugs 1. pwm-pxa driver is shared by ARCH_PXA and ARCH_MMP 2. use module_platform_driver for driver register
The patches also add device tree support for pwm.
V2->V1: Remove the redundant initialization. Fix bug of no initialization of .of_match_table. Use CONFIG_OF for device tree support. Rebase to for-next
V3->V2: Change "mrvl,xxx" to "marvell,xxx".
V4->V3 Change comments for "pwm: pxa: use module_platform_driver()" and "pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA". Use "static const" for pxa_pwm_of_match definition. Use the below scheme for DT support. if (!id_entry) { if (IS_ENABLED(CONFIG_OF)) err = parse_dt(); else err = -ENODEV; } else { err = parse_pdata(); }
if (err < 0) return err;
Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver() pwm: pxa: add device tree support
drivers/pwm/Kconfig | 2 +- drivers/pwm/pwm-pxa.c | 64 +++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 53 insertions(+), 13 deletions(-)
-- 1.7.4.1
| |