diff options
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-pxa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 2598d29fd7a4..2b557bfd7f70 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c | |||
@@ -138,11 +138,13 @@ static const struct bits icr_bits[] = { | |||
138 | PXA_BIT(ICR_UR, "UR", "ur"), | 138 | PXA_BIT(ICR_UR, "UR", "ur"), |
139 | }; | 139 | }; |
140 | 140 | ||
141 | #ifdef CONFIG_I2C_PXA_SLAVE | ||
141 | static void decode_ICR(unsigned int val) | 142 | static void decode_ICR(unsigned int val) |
142 | { | 143 | { |
143 | decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val); | 144 | decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val); |
144 | printk("\n"); | 145 | printk("\n"); |
145 | } | 146 | } |
147 | #endif | ||
146 | 148 | ||
147 | static unsigned int i2c_debug = DEBUG; | 149 | static unsigned int i2c_debug = DEBUG; |
148 | 150 | ||
@@ -1122,7 +1124,7 @@ static int __init i2c_adap_pxa_init(void) | |||
1122 | 1124 | ||
1123 | static void i2c_adap_pxa_exit(void) | 1125 | static void i2c_adap_pxa_exit(void) |
1124 | { | 1126 | { |
1125 | return platform_driver_unregister(&i2c_pxa_driver); | 1127 | platform_driver_unregister(&i2c_pxa_driver); |
1126 | } | 1128 | } |
1127 | 1129 | ||
1128 | MODULE_LICENSE("GPL"); | 1130 | MODULE_LICENSE("GPL"); |