]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit8d69abb08343706f88380edb83927ffc0fc83098
tree9d1f241988e7558c718d967d34751866ccb2431d
parent1de9e8e70f5acc441550ca75433563d91b269bbe
[ARM] pxa: fix NAND and MMC clock initialization for pxa3xx

After commit 8c3abc7d903df492a7394b0adae4349d9a381aaf
("[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