|
@@ -331,7 +331,7 @@ static int ocores_i2c_of_probe(struct platform_device *pdev,
|
|
|
&i2c->reg_io_width);
|
|
|
|
|
|
match = of_match_node(ocores_i2c_match, pdev->dev.of_node);
|
|
|
- if (match && (int)match->data == TYPE_GRLIB) {
|
|
|
+ if (match && (long)match->data == TYPE_GRLIB) {
|
|
|
dev_dbg(&pdev->dev, "GRLIB variant of i2c-ocores\n");
|
|
|
i2c->setreg = oc_setreg_grlib;
|
|
|
i2c->getreg = oc_getreg_grlib;
|