rk: ion: register rockchip cma device
authorCMY <cmy@rock-chips.com>
Thu, 12 Jun 2014 09:14:19 +0000 (17:14 +0800)
committerCMY <cmy@rock-chips.com>
Thu, 12 Jun 2014 09:14:36 +0000 (17:14 +0800)
drivers/staging/android/ion/rockchip/rockchip_ion.c

index bf44eb773a4d9b484df44f00f300da3703291df1..14539e5426c9c52fd259ddd65109660b01ffe726 100755 (executable)
@@ -266,6 +266,12 @@ static int rockchip_ion_probe(struct platform_device *pdev)
        int err;
        int i;
 
+       err = device_register(&rockchip_ion_cma_dev);
+       if (err) {
+               pr_err("Could not register %s\n", dev_name(&rockchip_ion_cma_dev));
+               return err;
+       }
+
        if (pdev->dev.of_node) {
                pdata = rockchip_ion_parse_dt(&pdev->dev);
                if (IS_ERR(pdata)) {