Skip to content

Commit

Permalink
[ARM] 4827/1: fix two warnings in drivers/i2c/busses/i2c-pxa.c
Browse files Browse the repository at this point in the history
This fixes two warnings:

* unused static defined function decode_ICR() when
  compiled without CONFIG_I2C_PXA_SLAVE
* a sparse warning about a void function returning
  something

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Holger Schurig authored and Russell King committed Feb 17, 2008
1 parent 59e8ce5 commit d6a7b5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,13 @@ static const struct bits icr_bits[] = {
PXA_BIT(ICR_UR, "UR", "ur"),
};

#ifdef CONFIG_I2C_PXA_SLAVE
static void decode_ICR(unsigned int val)
{
decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val);
printk("\n");
}
#endif

static unsigned int i2c_debug = DEBUG;

Expand Down Expand Up @@ -1122,7 +1124,7 @@ static int __init i2c_adap_pxa_init(void)

static void i2c_adap_pxa_exit(void)
{
return platform_driver_unregister(&i2c_pxa_driver);
platform_driver_unregister(&i2c_pxa_driver);
}

MODULE_LICENSE("GPL");
Expand Down

0 comments on commit d6a7b5f

Please sign in to comment.