LPC31: Fix an unmatching function prototype

This commit is contained in:
Gregory Nutt 2016-02-03 18:11:42 -06:00
parent 1166e311b0
commit d511afd507

View File

@ -570,19 +570,21 @@ struct i2c_master_s *lpc31_i2cbus_initialize(int port)
i2c_hwreset(priv);
/* Allocate a watchdog timer */
priv->timeout = wd_create();
priv->timeout = wd_create();
DEBUGASSERT(priv->timeout != 0);
/* Attach Interrupt Handler */
irq_attach(priv->irqid, i2c_interrupt);
/* Enable Interrupt Handler */
up_enable_irq(priv->irqid);
/* Install our operations */
priv->dev.ops = &lpc31_i2c_ops;
priv->dev.ops = &lpc31_i2c_ops;
return &priv->dev;
}
@ -594,8 +596,10 @@ struct i2c_master_s *lpc31_i2cbus_initialize(int port)
*
****************************************************************************/
void lpc31_i2cbus_uninitialize(struct lpc31_i2cdev_s *priv)
int lpc31_i2cbus_uninitialize(FAR struct i2c_master_s *dev)
{
struct lpc31_i2cdev_s *priv = (struct lpc31_i2cdev_s *)dev;
/* Disable All Interrupts, soft reset the device */
i2c_hwreset(priv);
@ -611,4 +615,5 @@ void lpc31_i2cbus_uninitialize(struct lpc31_i2cdev_s *priv)
/* Disable I2C system clocks */
lpc31_disableclock(priv->clkid);
return OK;
}