Fix common misspellings
[linux-block.git] / drivers / video / gbefb.c
index ca3355e430bfd18ac5e55897fd4cab633d3772f8..7e7b7a9ba274ba2d33450b68b76a55ba21fab898 100644 (file)
@@ -721,7 +721,7 @@ static int gbefb_set_par(struct fb_info *info)
 
           Tiles have the advantage that they can be allocated individually in
           memory. However, this mapping is not linear at all, which is not
-          really convienient. In order to support linear addressing, the GBE
+          really convenient. In order to support linear addressing, the GBE
           DMA hardware is fooled into thinking the screen is only one tile
           large and but has a greater height, so that the DMA transfer covers
           the same region.
@@ -1143,8 +1143,10 @@ static int __devinit gbefb_probe(struct platform_device *p_dev)
                return -ENOMEM;
 
 #ifndef MODULE
-       if (fb_get_options("gbefb", &options))
-               return -ENODEV;
+       if (fb_get_options("gbefb", &options)) {
+               ret = -ENODEV;
+               goto out_release_framebuffer;
+       }
        gbefb_setup(options);
 #endif