Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4a75c91 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Grant Likely
Browse files

of/dma: mpc512x_dma.c: Fix build failures



Fixes build errors caused by the:
 - OF device_node pointer being moved into struct device
 - removal of the match_table field from struct of_platform_driver

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 14acbbf8
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -630,7 +630,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
static int __devinit mpc_dma_probe(struct of_device *op,
static int __devinit mpc_dma_probe(struct of_device *op,
					const struct of_device_id *match)
					const struct of_device_id *match)
{
{
	struct device_node *dn = op->node;
	struct device_node *dn = op->dev.of_node;
	struct device *dev = &op->dev;
	struct device *dev = &op->dev;
	struct dma_device *dma;
	struct dma_device *dma;
	struct mpc_dma *mdma;
	struct mpc_dma *mdma;
@@ -771,12 +771,12 @@ static struct of_device_id mpc_dma_match[] = {
};
};


static struct of_platform_driver mpc_dma_driver = {
static struct of_platform_driver mpc_dma_driver = {
	.match_table	= mpc_dma_match,
	.probe		= mpc_dma_probe,
	.probe		= mpc_dma_probe,
	.remove		= __devexit_p(mpc_dma_remove),
	.remove		= __devexit_p(mpc_dma_remove),
	.driver = {
	.driver = {
		.name = DRV_NAME,
		.name = DRV_NAME,
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.of_match_table	= mpc_dma_match,
	},
	},
};
};