[ARM] pxa/magician: use ARRAY_AND_SIZE for platform_add_devices
[safe/jmp/linux-2.6] / arch / arm / common / sa1111.c
index 47ccec9..ef12794 100644 (file)
@@ -630,7 +630,7 @@ __sa1111_probe(struct device *me, struct resource *mem, int irq)
                return -ENOMEM;
 
        sachip->clk = clk_get(me, "SA1111_CLK");
-       if (!sachip->clk) {
+       if (IS_ERR(sachip->clk)) {
                ret = PTR_ERR(sachip->clk);
                goto err_free;
        }