diff options
Diffstat (limited to 'drivers/i2c/i2c-core.c')
| -rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index b432b64e307a..6a2b995d7fc4 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
| @@ -77,9 +77,10 @@ static int i2c_detect(struct i2c_adapter *adapter, struct i2c_driver *driver); | |||
| 77 | static struct static_key i2c_trace_msg = STATIC_KEY_INIT_FALSE; | 77 | static struct static_key i2c_trace_msg = STATIC_KEY_INIT_FALSE; |
| 78 | static bool is_registered; | 78 | static bool is_registered; |
| 79 | 79 | ||
| 80 | void i2c_transfer_trace_reg(void) | 80 | int i2c_transfer_trace_reg(void) |
| 81 | { | 81 | { |
| 82 | static_key_slow_inc(&i2c_trace_msg); | 82 | static_key_slow_inc(&i2c_trace_msg); |
| 83 | return 0; | ||
| 83 | } | 84 | } |
| 84 | 85 | ||
| 85 | void i2c_transfer_trace_unreg(void) | 86 | void i2c_transfer_trace_unreg(void) |
