video: constify fb ops across all drivers
[linux-2.6-microblaze.git] / drivers / video / fbdev / hyperv_fb.c
index 00f5bdc..fcd546e 100644 (file)
@@ -623,7 +623,7 @@ static void hvfb_cfb_imageblit(struct fb_info *p,
                synthvid_update(p);
 }
 
-static struct fb_ops hvfb_ops = {
+static const struct fb_ops hvfb_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = hvfb_check_var,
        .fb_set_par = hvfb_set_par,
@@ -762,10 +762,8 @@ static int hvfb_probe(struct hv_device *hdev,
        int ret;
 
        info = framebuffer_alloc(sizeof(struct hvfb_par), &hdev->device);
-       if (!info) {
-               pr_err("No memory for framebuffer info\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        par = info->par;
        par->info = info;