[PATCH 2.6.11] ppc32: update Radstone ppc7d platform

2005-03-16 Thread James Chapman
Andrew Morton wrote:

 Mark A. Greer mgreer at mvista.com wrote:
 
 +ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
 +{
 +struct mv64xxx_i2c_pdata *pdata;
 +int i;
 +
 +pdata = pdev-dev.platform_data;
 +if (pdata == NULL) {
 +pdata = kmalloc(GFP_KERNEL, sizeof(*pdata));
 
 
 I'll switch those kmalloc args around for you.

Wow, I'm surprised it ever worked! Thanks!





[PATCH 2.6.11] ppc32: update Radstone ppc7d platform for enet/i2c

2005-03-15 Thread James Chapman

-- next part --
An embedded and charset-unspecified text was scrubbed...
Name: ppc7d-platdata.patch
Url: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050315/9dd92948/attachment.txt
 


[PATCH 2.6.11] ppc32: update Radstone ppc7d platform

2005-03-15 Thread Mark A. Greer
ppc32: Radstone PPC7D platform update

- Recent mv643xx #define name changes broke the PPC7D platform
compile. Fixed by this patch.

- Change default platform config to add mv643xx_eth and mv64xxx-i2c
config options.

- Add i2c platform data and update to cope with recent platform device
name change.

Signed-off-by: James Chapman jchapman at katalix.com
Signed-off-by: Mark A. Greer mgreer at mvista.com
--
-- next part --
An embedded and charset-unspecified text was scrubbed...
Name: ppc7d-2.patch
Url: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050315/7f7ab745/attachment.txt
 


[PATCH 2.6.11] ppc32: update Radstone ppc7d platform

2005-03-15 Thread Andrew Morton
Mark A. Greer mgreer at mvista.com wrote:

  +ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
  +{
  +struct mv64xxx_i2c_pdata *pdata;
  +int i;
  +
  +pdata = pdev-dev.platform_data;
  +if (pdata == NULL) {
  +pdata = kmalloc(GFP_KERNEL, sizeof(*pdata));

I'll switch those kmalloc args around for you.