[i2c] [PATCH] AT91 I2C driver update

Andrew Victor andrew at sanpeople.com
Fri Dec 8 17:37:47 CET 2006


hi Jean,

> What
> would happen without the changes below, compilation failure?

Yes.

at91rm9200_twi.h has been renamed to at91_twi.h
arch_identify() no longer exists.


> > @@ -244,9 +244,9 @@
> >  	return 0;
> >  
> >  fail3:
> > -	clk_disable(twi_clk);
> >  	platform_set_drvdata(pdev, NULL);
> >  	kfree(adapter);
> > +	clk_disable(twi_clk);
> >  fail2:
> >  	clk_put(twi_clk);
> >  fail1:
> 
> What is this change for? Does it actually fix a bug, or...?

It's was just making the failure-path a bit more logical.
Nothing serious.


Regards,
  Andrew Victor





More information about the i2c mailing list