Skip to content

Commit

Permalink
drm/tegra: fix compile w/ CONFIG_DYNAMIC_DEBUG
Browse files Browse the repository at this point in the history
With CONFIG_DYNAMIC_DEBUG=y, the following compile error occurs:

drivers/gpu/drm/tegra/mipi-phy.c: In function ‘mipi_dphy_timing_validate’:
drivers/gpu/drm/tegra/mipi-phy.c:69:11: error: ‘EINVAL’ undeclared (first use in this function)
drivers/gpu/drm/tegra/mipi-phy.c:69:11: note: each undeclared identifier is reported only once for each function it appears in

Fix this by directly including the header that defines EINVAL.

Fixes: dec7273 ("drm/tegra: Add DSI support")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Stephen Warren authored and Thierry Reding committed Dec 20, 2013
1 parent 3800391 commit 81239c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/tegra/mipi-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* OF THIS SOFTWARE.
*/

#include <linux/errno.h>
#include <linux/kernel.h>

#include "mipi-phy.h"
Expand Down

0 comments on commit 81239c6

Please sign in to comment.