Skip to content

Commit e752b8e

Browse files
committed
drivers/misc/mathworks: Extend ifdef CONFIG_I2C
To avoid unused warnings. Signed-off-by: Jorge Marques <[email protected]>
1 parent da48fe3 commit e752b8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/misc/mathworks/mathworks_generic_of.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#define DRIVER_NAME "mathworks_generic_of"
2121

22+
#if defined(CONFIG_I2C)
2223
static inline void mwgen_of_node_put(void *data)
2324
{
2425
struct device_node *node = data;
@@ -100,6 +101,7 @@ static int mathworks_generic_of_i2c_init(struct mathworks_ip_info *thisIpcore){
100101

101102
return 0;
102103
}
104+
#endif
103105

104106
static int mathworks_generic_of_get_param(struct mathworks_ip_info *thisIpcore, void *arg)
105107
{

0 commit comments

Comments
 (0)