Enable RTC for Ebony and Walnut
Stephen Rothwell
sfr at canb.auug.org.au
Fri Dec 21 16:16:09 EST 2007
On Fri, 21 Dec 2007 13:21:30 +1100 David Gibson <david at gibson.dropbear.id.au> wrote:
>
> +++ working-2.6/arch/powerpc/sysdev/of_rtc.c 2007-12-21 13:11:34.000000000 +1100
> +#include <asm/of_platform.h>
Use linux/of_platform.h, please.
> +
> +static struct {
const or __initdata
> + char *compatible;
const
> + char *plat_name;
const (ok, no, thanks to platform_device_register_simple()).
> +} of_rtc_table[] = {
> + { "ds1743-nvram", "rtc-ds1742" },
> +};
> +
> +void __init of_instantiate_rtc(void)
> +{
> + struct device_node *node;
> + int err;
> + int i;
> +
> + for (i = 0; i < ARRAY_SIZE(of_rtc_table); i++) {
> + char *compatible = of_rtc_table[i].compatible;
const (or maybe just use of_rtc_table[i].compatible directly in the one
place it is used).
--
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/20071221/fbfbe019/attachment.pgp>
More information about the Linuxppc-dev
mailing list