public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/3] pwm: pxa: bug fix and device tree support
@ 2013-05-06  1:29 Chao Xie
  2013-05-06  1:29 ` [PATCH V4 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA Chao Xie
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Chao Xie @ 2013-05-06  1:29 UTC (permalink / raw)
  To: thierry.reding, linux-kernel, xiechao.mail, eric.y.miao; +Cc: Chao Xie

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-23 19:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06  1:29 [PATCH V4 0/3] pwm: pxa: bug fix and device tree support Chao Xie
2013-05-06  1:29 ` [PATCH V4 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA Chao Xie
2013-05-13  2:07   ` Eric Miao
2013-05-06  1:30 ` [PATCH V4 2/3] pwm: pxa: use module_platform_driver() Chao Xie
2013-05-13  2:08   ` Eric Miao
2013-05-06  1:30 ` [PATCH V4 3/3] pwm: pxa: add device tree support Chao Xie
2013-05-13  2:27   ` Eric Miao
2013-05-13  5:04     ` Chao Xie
2013-05-13  6:20       ` Eric Miao
2013-05-21  5:21         ` Chao Xie
2013-05-23 19:10           ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox