.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * shmob_drm_kms.c -- SH Mobile DRM Mode Setting |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012 Renesas Electronics Corporation |
---|
5 | 6 | * |
---|
6 | 7 | * Laurent Pinchart (laurent.pinchart@ideasonboard.com) |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | | -#include <drm/drmP.h> |
---|
15 | 10 | #include <drm/drm_crtc.h> |
---|
16 | 11 | #include <drm/drm_crtc_helper.h> |
---|
17 | 12 | #include <drm/drm_fb_cma_helper.h> |
---|
18 | 13 | #include <drm/drm_gem_cma_helper.h> |
---|
19 | 14 | #include <drm/drm_gem_framebuffer_helper.h> |
---|
| 15 | +#include <drm/drm_probe_helper.h> |
---|
20 | 16 | |
---|
21 | 17 | #include "shmob_drm_crtc.h" |
---|
22 | 18 | #include "shmob_drm_drv.h" |
---|
.. | .. |
---|
130 | 126 | |
---|
131 | 127 | int shmob_drm_modeset_init(struct shmob_drm_device *sdev) |
---|
132 | 128 | { |
---|
133 | | - drm_mode_config_init(sdev->ddev); |
---|
| 129 | + int ret; |
---|
| 130 | + |
---|
| 131 | + ret = drmm_mode_config_init(sdev->ddev); |
---|
| 132 | + if (ret) |
---|
| 133 | + return ret; |
---|
134 | 134 | |
---|
135 | 135 | shmob_drm_crtc_create(sdev); |
---|
136 | 136 | shmob_drm_encoder_create(sdev); |
---|