Re: linux-next: build failure after merge of the final tree(devicetree tree related)

From: Grant Likely
Date: Tue Mar 01 2011 - 11:42:14 EST


On Mon, Feb 28, 2011 at 11:54 PM, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> Hi Grant,
>
> After merging the final tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> drivers/mtd/nand/pasemi_nand.c:221: error: variable 'pasemi_nand_driver' has initializer but incomplete type
> drivers/mtd/nand/pasemi_nand.c:223: error: unknown field 'driver' specified in initializer
> drivers/mtd/nand/pasemi_nand.c:223: error: extra brace group at end of initializer
> drivers/mtd/nand/pasemi_nand.c:223: error: (near initialization for 'pasemi_nand_driver')
> drivers/mtd/nand/pasemi_nand.c:227: warning: excess elements in struct initializer
> drivers/mtd/nand/pasemi_nand.c:227: warning: (near initialization for 'pasemi_nand_driver')
> drivers/mtd/nand/pasemi_nand.c:228: error: unknown field 'probe' specified in initializer
> drivers/mtd/nand/pasemi_nand.c:228: warning: excess elements in struct initializer
> drivers/mtd/nand/pasemi_nand.c:228: warning: (near initialization for 'pasemi_nand_driver')
> drivers/mtd/nand/pasemi_nand.c:229: error: unknown field 'remove' specified in initializer
> drivers/mtd/nand/pasemi_nand.c:229: warning: excess elements in struct initializer
> drivers/mtd/nand/pasemi_nand.c:229: warning: (near initialization for 'pasemi_nand_driver')
> drivers/mtd/nand/pasemi_nand.c: In function 'pasemi_nand_init':
> drivers/mtd/nand/pasemi_nand.c:234: warning: passing argument 1 of 'platform_driver_register' from incompatible pointer type
> include/linux/platform_device.h:124: note: expected 'struct platform_driver *' but argument is of type 'struct latform_driver *'
> drivers/mtd/nand/pasemi_nand.c: In function 'pasemi_nand_exit':
> drivers/mtd/nand/pasemi_nand.c:240: warning: passing argument 1 of 'platform_driver_unregister' from incompatible pointer type
> include/linux/platform_device.h:125: note: expected 'struct platform_driver *' but argument is of type 'struct latform_driver *'
>
> Caused by commit ac677e82cd5c031a010458304821bb8b1e47cf24 ("dt: Eliminate
> of_platform_{,un}register_driver").  Looks like a typo to me :-)

Indeed! Fix pushed out. Thanks.

g.
--
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/