drm/modesetting: more fb interface cleanups

main
Dave Airlie 2008-06-05 15:55:03 +10:00
parent efcf066eff
commit b31adb005a
3 changed files with 8 additions and 4 deletions

View File

@ -42,7 +42,7 @@ static struct pci_device_id pciidlist[] = {
unsigned int i915_modeset = 0;
module_param_named(modeset, i915_modeset, int, 0400);
unsigned int i915_fbpercrtc = 1;
unsigned int i915_fbpercrtc = 0;
module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);
unsigned int i915_rightof = 1;

View File

@ -1519,6 +1519,7 @@ struct drm_framebuffer *intel_user_framebuffer_create(struct drm_device *dev,
static const struct drm_mode_config_funcs intel_mode_funcs = {
.resize_fb = NULL,
.fb_create = intel_user_framebuffer_create,
.fb_changed = intelfb_probe,
};
void intel_modeset_init(struct drm_device *dev)

View File

@ -200,9 +200,7 @@ static int intelfb_check_var(struct fb_var_screeninfo *var,
static int intelfb_set_par(struct fb_info *info)
{
struct intelfb_par *par = info->par;
struct drm_device *dev = par->dev;
struct fb_var_screeninfo *var = &info->var;
int found = 0;
DRM_DEBUG("%d %d\n", var->xres, var->pixclock);
@ -215,6 +213,9 @@ static int intelfb_set_par(struct fb_info *info)
struct drm_framebuffer *fb = &intel_fb->base;
struct drm_display_mode *drm_mode, *search_mode;
struct drm_connector *connector = NULL;
struct drm_device *dev = par->dev;
int found = 0;
switch (var->bits_per_pixel) {
case 16:
@ -756,6 +757,7 @@ static int intelfb_create_crtcmodesets(struct intel_framebuffer *intel_fb, int n
modeset->connectors = (struct drm_connector **)(modeset + 1);
list_add_tail(&modeset->head, &par->mode_set_list);
}
return 0;
fail:
list_for_each_entry(modeset, &par->mode_set_list, head) {
@ -860,7 +862,8 @@ static int intelfb_single_fb_probe(struct drm_device *dev)
info->var.pixclock = -1;
if (register_framebuffer(info) < 0)
return -EINVAL;
}
} else
intelfb_set_par(info);
printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node,
info->fix.id);