diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-06 10:37:02 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-06 10:37:02 -0400 |
commit | ab11b487402f97975f3ac1eeea09c82f4431481e (patch) | |
tree | 86337c5cbbd2b0c4bd07c0847a1dc7de3d898147 /drivers/gpu/drm/drm_encoder_slave.c | |
parent | 1c689cbcf2c2b7a35cd237abddd9206bb1b6fee1 (diff) | |
parent | fc1caf6eafb30ea185720e29f7f5eccca61ecd60 (diff) |
Merge branch 'master' into for-linus
Diffstat (limited to 'drivers/gpu/drm/drm_encoder_slave.c')
-rw-r--r-- | drivers/gpu/drm/drm_encoder_slave.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_encoder_slave.c b/drivers/gpu/drm/drm_encoder_slave.c index f0184696edf..d62c064fbaa 100644 --- a/drivers/gpu/drm/drm_encoder_slave.c +++ b/drivers/gpu/drm/drm_encoder_slave.c | |||
@@ -41,6 +41,9 @@ | |||
41 | * &drm_encoder_slave. The @slave_funcs field will be initialized with | 41 | * &drm_encoder_slave. The @slave_funcs field will be initialized with |
42 | * the hooks provided by the slave driver. | 42 | * the hooks provided by the slave driver. |
43 | * | 43 | * |
44 | * If @info->platform_data is non-NULL it will be used as the initial | ||
45 | * slave config. | ||
46 | * | ||
44 | * Returns 0 on success or a negative errno on failure, in particular, | 47 | * Returns 0 on success or a negative errno on failure, in particular, |
45 | * -ENODEV is returned when no matching driver is found. | 48 | * -ENODEV is returned when no matching driver is found. |
46 | */ | 49 | */ |
@@ -85,6 +88,10 @@ int drm_i2c_encoder_init(struct drm_device *dev, | |||
85 | if (err) | 88 | if (err) |
86 | goto fail_unregister; | 89 | goto fail_unregister; |
87 | 90 | ||
91 | if (info->platform_data) | ||
92 | encoder->slave_funcs->set_config(&encoder->base, | ||
93 | info->platform_data); | ||
94 | |||
88 | return 0; | 95 | return 0; |
89 | 96 | ||
90 | fail_unregister: | 97 | fail_unregister: |