浏览代码

[ARM] omap: ensure devname is set for dummy devices

This is needed to use these with the clkdev helpers.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 16 年之前
父节点
当前提交
1e98ffa85e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/arm/mach-omap2/devices.c

+ 1 - 0
arch/arm/mach-omap2/devices.c

@@ -348,6 +348,7 @@ static void __init omap_hsmmc_reset(void)
 		}
 
 		dummy_pdev.id = i;
+		dev_set_name(&dummy_pdev.dev, "mmci-omap-hs.%d", i);
 		iclk = clk_get(dev, "mmchs_ick");
 		if (iclk && clk_enable(iclk))
 			iclk = NULL;