Re: [PATCH v3] olpc_battery: convert to platform device

From: David Woodhouse
Date: Wed Feb 16 2011 - 17:44:49 EST


On Wed, 2011-02-16 at 22:28 +0000, Daniel Drake wrote:
>
> +static int __init add_common_platform_devices(void)
> +{
> + struct platform_device *pdev;
> +
> + pdev = platform_device_register_simple("olpc-battery", -1, NULL, 0);
> + if (IS_ERR(pdev))
> + return PTR_ERR(pdev);
> +
> + return 0;
> +}
> +

Still kind of sucks that you have to do this, and can't bind to
something in the device-tree.

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@xxxxxxxxx Intel Corporation

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/