lkml.org 
[lkml]   [2011]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3] olpc_battery: convert to platform device
From
Date
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@intel.com Intel Corporation



\
 
 \ /
  Last update: 2011-02-16 23:47    [from the cache]
©2003-2011 Jasper Spaans