diff options
Diffstat (limited to 'drivers/gpu/drm/imx/parallel-display.c')
| -rw-r--r-- | drivers/gpu/drm/imx/parallel-display.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c index 8a76a5c1c34b..796c3c1c170a 100644 --- a/drivers/gpu/drm/imx/parallel-display.c +++ b/drivers/gpu/drm/imx/parallel-display.c | |||
| @@ -11,11 +11,6 @@ | |||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
| 18 | * MA 02110-1301, USA. | ||
| 19 | */ | 14 | */ |
| 20 | 15 | ||
| 21 | #include <linux/component.h> | 16 | #include <linux/component.h> |
| @@ -128,6 +123,10 @@ static void imx_pd_encoder_prepare(struct drm_encoder *encoder) | |||
| 128 | 123 | ||
| 129 | static void imx_pd_encoder_commit(struct drm_encoder *encoder) | 124 | static void imx_pd_encoder_commit(struct drm_encoder *encoder) |
| 130 | { | 125 | { |
| 126 | struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); | ||
| 127 | |||
| 128 | drm_panel_prepare(imxpd->panel); | ||
| 129 | drm_panel_enable(imxpd->panel); | ||
| 131 | } | 130 | } |
| 132 | 131 | ||
| 133 | static void imx_pd_encoder_mode_set(struct drm_encoder *encoder, | 132 | static void imx_pd_encoder_mode_set(struct drm_encoder *encoder, |
| @@ -138,6 +137,10 @@ static void imx_pd_encoder_mode_set(struct drm_encoder *encoder, | |||
| 138 | 137 | ||
| 139 | static void imx_pd_encoder_disable(struct drm_encoder *encoder) | 138 | static void imx_pd_encoder_disable(struct drm_encoder *encoder) |
| 140 | { | 139 | { |
| 140 | struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); | ||
| 141 | |||
| 142 | drm_panel_disable(imxpd->panel); | ||
| 143 | drm_panel_unprepare(imxpd->panel); | ||
| 141 | } | 144 | } |
| 142 | 145 | ||
| 143 | static struct drm_connector_funcs imx_pd_connector_funcs = { | 146 | static struct drm_connector_funcs imx_pd_connector_funcs = { |
