lkml.org 
[lkml]   [2007]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2.6.21 3/3] x86_64: EFI64 support
Date
Chandramouli Narayanan <mouli@linux.intel.com> writes:

> +
> +static int __init efifb_init(void)
> +{
> + int ret;
> +
> + if (!efi_enabled)
> + return -ENODEV;
> +

Please remove this efi_enabled check it appears redundant with
the check immediately below.

> + if (screen_info.orig_video_isVGA != VIDEO_TYPE_EFI)
> + return -ENODEV;
> +
> +
> + ret = platform_driver_register(&efifb_driver);
> +
> + if (!ret) {
> + ret = platform_device_register(&efifb_device);
> + if (ret)
> + platform_driver_unregister(&efifb_driver);
> + }
> + return ret;
> +}
> +module_init(efifb_init);

Eric


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-01 20:55    [W:1.057 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site