of: Always use 'struct device.of_node' to get device node pointer.
[safe/jmp/linux-2.6] / drivers / gpio / pca953x.c
index 7d521e1..1db114b 100644 (file)
@@ -437,7 +437,7 @@ pca953x_get_alt_pdata(struct i2c_client *client)
        struct device_node *node;
        const uint16_t *val;
 
-       node = dev_archdata_get_node(&client->dev.archdata);
+       node = client->dev.of_node;
        if (node == NULL)
                return NULL;