On Tue, 27 Nov 2007 18:39:08 +0300 Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> 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 sfr@xxxxxxxxxxxxxxxx http://www.canb.auug.org.au/~sfr/
Attachment:
pgp8tPKZiwdbE.pgp
Description: PGP signature