On Tue, 27 Nov 2007 18:39:08 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > +static int __devinit pata_of_platform_probe(struct of_device *ofdev, > + const struct of_device_id *match) > +{ > + uint32_t *prop;
Make this "const uint32_t *prop" or (more kernel like) "const u32 *prop" ... > + prop = (uint32_t *)of_get_property(dn, "ioport-shift", NULL); then you don't need this cast. Anytime you use a cast to get rid of "const", is probably a mistake. -- Cheers, Stephen Rothwell [EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/
pgpp8zGdiDVGf.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev