Commit 00940a23 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Artem Bityutskiy

mtd: bcm47xxnflash: enable BCM4706 driver

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 3c01d4cb
bcm47xxnflash-y += main.o bcm47xxnflash-y += main.o
bcm47xxnflash- += ops_bcm4706.o bcm47xxnflash-y += ops_bcm4706.o
obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH) += bcm47xxnflash.o obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH) += bcm47xxnflash.o
...@@ -17,4 +17,6 @@ struct bcm47xxnflash { ...@@ -17,4 +17,6 @@ struct bcm47xxnflash {
u8 id_data[8]; u8 id_data[8];
}; };
int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
#endif /* BCM47XXNFLASH */ #endif /* BCM47XXNFLASH */
...@@ -40,8 +40,8 @@ static int bcm47xxnflash_probe(struct platform_device *pdev) ...@@ -40,8 +40,8 @@ static int bcm47xxnflash_probe(struct platform_device *pdev)
b47n->mtd.priv = &b47n->nand_chip; /* Required */ b47n->mtd.priv = &b47n->nand_chip; /* Required */
b47n->cc = container_of(nflash, struct bcma_drv_cc, nflash); b47n->cc = container_of(nflash, struct bcma_drv_cc, nflash);
if (0) { if (b47n->cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) {
/* TODO: init device */ err = bcm47xxnflash_ops_bcm4706_init(b47n);
} else { } else {
pr_err("Device not supported\n"); pr_err("Device not supported\n");
err = -ENOTSUPP; err = -ENOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment