[PATCH 3/3] Freescale enhanced Local Bus Controller FCM NAND support.

Stephen Rothwell sfr at canb.auug.org.au
Mon Jan 14 17:13:58 EST 2008


Hi Scott,

On Fri, 11 Jan 2008 14:43:20 -0600 Scott Wood <scottwood at freescale.com> wrote:
>
> +static int __devinit fsl_elbc_ctrl_probe(struct of_device *ofdev,
> +                                         const struct of_device_id *match)
> +{

> +	child = NULL;
> +	while ((child = of_get_next_child(ofdev->node, child)))

	for_each_child_of_node(of_dev->node, child)

> +		if (of_device_is_compatible(child, "fsl,elbc-fcm-nand"))
> +			fsl_elbc_chip_probe(ctrl, child);

> +static struct of_device_id fsl_elbc_match[] = {

const, please.

> +static struct of_platform_driver fsl_elbc_ctrl_driver = {

	.driver = {

> +	.name	= "fsl-elbc",

	},

> +	.match_table = fsl_elbc_match,
> +	.probe = fsl_elbc_ctrl_probe,
> +	.remove = __devexit_p(fsl_elbc_ctrl_remove),
> +};

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080114/c10cb4b3/attachment.pgp>


More information about the Linuxppc-dev mailing list