]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] pxa: fix NAND and MMC clock initialization for pxa3xx
authorMike Rapoport <mike@compulab.co.il>
Sun, 18 Jan 2009 09:55:19 +0000 (11:55 +0200)
committerEric Miao <eric.miao@marvell.com>
Mon, 19 Jan 2009 02:55:16 +0000 (10:55 +0800)
commit48929dd0d496af83a26a18ba712fcbbf10b08bcc
tree9d1f241988e7558c718d967d34751866ccb2431d
parentabd5b8ec5c20235ce0e8867698184a798d0da796
[ARM] pxa: fix NAND and MMC clock initialization for pxa3xx

After commit 4ebfcc769db103cea664119f5049703743857cb6
("[ARM] pxa: convert to clkdev and match clocks by struct device where possible")
get_clk in pxa3xx_nand fails with -ENOENT.
Apparently, clk_get in pxamci will also fail for MCI2 on PXA310.

The 'clk_find' and therefore 'clk_get' require driver to supply
both 'dev_id' and 'con_id' if they are not NULL in the 'strcut clk_lookup',
but neither pxa3xx_nand nor pxamci supply 'con_id'.

This patch sets 'con_id' to NULL in NAND clock and MCI2 clock registration.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/pxa300.c
arch/arm/mach-pxa/pxa320.c