oops in i2c-rpx.c !
Hi there,
the attached trival patch fixes a problem when using i2c-rpx.c without applying the "microcode relocation patch".
Thanks.
BTW: Why is this driver not in linuxppc-2.4 but in linuxppc_2_4_devel?
--
Steven Scholz
imc Measurement & Control imc Meßsysteme GmbH Voltastr. 5 Voltastr. 5 13355 Berlin 13355 Berlin Germany Deutschland fon: +49 30 467090-0 Tel: 030 / 467090-0 fax: +49 30 4631576 fax: 030 / 4631576
Index: drivers/i2c/i2c-rpx.c
===================================================================
RCS file: /cvsroot/linuxppc_2_4_devel/drivers/i2c/i2c-rpx.c,v retrieving revision 1.2
i2c/i2c-rpx.c +2 -0
@@ -35,10 +35,12 @@ data->iip = (iic_t *)&cp->cp_dparam[PROFF_IIC ]; +#ifdef USE_IIC_PATCH /* Check for and use a microcode relocation patch. */ if ((data->reloc = data->iip->iic_rpbase)) data->iip = (iic_t *)&cp->cp_dpmem[data->iip->iic_rpbase]; +#endif data->i2c = (i2c8xx_t *)&(immap->im_i2c); data->cp = cp;