]> Pileus Git - ~andy/linux/blobdiff - drivers/i2c/busses/i2c-ocores.c
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[~andy/linux] / drivers / i2c / busses / i2c-ocores.c
index a337d08a392db520eaee71d1713af9c5ad3f1de0..0e1f8245e768d91c9fe2c58639607b952b804c57 100644 (file)
@@ -332,7 +332,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;
@@ -452,7 +452,6 @@ static int ocores_i2c_remove(struct platform_device *pdev)
 
        /* remove adapter & data */
        i2c_del_adapter(&i2c->adap);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }