[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20111012141543.fb3319f1b5345f5dcb9cdc52@canb.auug.org.au>
Date: Wed, 12 Oct 2011 14:15:43 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Chris Ball <cjb@...top.org>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Manuel Lauss <manuel.lauss@...glemail.com>,
Ralf Baechle <ralf@...ux-mips.org>,
Girish K S <girish.shivananjappa@...aro.org>
Subject: linux-next: manual merge of the mmc tree with the mips tree
Hi Chris,
Today's linux-next merge of the mmc tree got a conflict in
drivers/mmc/host/au1xmmc.c between commit 404b3fb0b766 ("MMC: au1xmmc:
Remove Alchemy CPU subtype dependencies") from the mips tree and commit
a0c8202a148f ("mmc: replace printk with appropriate display macro") from
the mmc tree.
I fixed it up (see below) and can carry the fix as necessary.
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
diff --cc drivers/mmc/host/au1xmmc.c
index 56e7834,707bc7d..0000000
--- a/drivers/mmc/host/au1xmmc.c
+++ b/drivers/mmc/host/au1xmmc.c
@@@ -1036,12 -1028,11 +1036,11 @@@ static int __devinit au1xmmc_probe(stru
tasklet_init(&host->finish_task, au1xmmc_tasklet_finish,
(unsigned long)host);
-#ifdef CONFIG_SOC_AU1200
- ret = au1xmmc_dbdma_init(host);
- if (ret)
- pr_info(DRIVER_NAME ": DBDMA init failed; using PIO\n");
-#endif
+ if (has_dbdma()) {
+ ret = au1xmmc_dbdma_init(host);
+ if (ret)
- printk(KERN_INFO DRIVER_NAME ": DBDMA init failed; "
- "using PIO\n");
++ pr_info(DRIVER_NAME ": DBDMA init failed; using PIO\n");
+ }
#ifdef CONFIG_LEDS_CLASS
if (host->platdata && host->platdata->led) {
@@@ -1189,15 -1181,15 +1188,15 @@@ static struct platform_driver au1xmmc_d
static int __init au1xmmc_init(void)
{
-#ifdef CONFIG_SOC_AU1200
- /* DSCR_CMD0_ALWAYS has a stride of 32 bits, we need a stride
- * of 8 bits. And since devices are shared, we need to create
- * our own to avoid freaking out other devices.
- */
- memid = au1xxx_ddma_add_device(&au1xmmc_mem_dbdev);
- if (!memid)
- pr_err("au1xmmc: cannot add memory dbdma dev\n");
-#endif
+ if (has_dbdma()) {
+ /* DSCR_CMD0_ALWAYS has a stride of 32 bits, we need a stride
+ * of 8 bits. And since devices are shared, we need to create
+ * our own to avoid freaking out other devices.
+ */
+ memid = au1xxx_ddma_add_device(&au1xmmc_mem_dbdev);
+ if (!memid)
- printk(KERN_ERR "au1xmmc: cannot add memory dbdma\n");
++ pr_err("au1xmmc: cannot add memory dbdma dev\n");
+ }
return platform_driver_register(&au1xmmc_driver);
}
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists