dsi.c (aea24171c85edbff1e021016e8ea1bf64b89a4f8) | dsi.c (9888495a14a80a0a229e13c293592da559c51e64) |
---|---|
1/* 2 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 104 unchanged lines hidden (view full) --- 113{ 114 struct drm_device *drm = dev_get_drvdata(master); 115 struct msm_drm_private *priv = drm->dev_private; 116 struct platform_device *pdev = to_platform_device(dev); 117 struct msm_dsi *msm_dsi; 118 119 DBG(""); 120 msm_dsi = dsi_init(pdev); | 1/* 2 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 104 unchanged lines hidden (view full) --- 113{ 114 struct drm_device *drm = dev_get_drvdata(master); 115 struct msm_drm_private *priv = drm->dev_private; 116 struct platform_device *pdev = to_platform_device(dev); 117 struct msm_dsi *msm_dsi; 118 119 DBG(""); 120 msm_dsi = dsi_init(pdev); |
121 if (IS_ERR(msm_dsi)) 122 return PTR_ERR(msm_dsi); | 121 if (IS_ERR(msm_dsi)) { 122 /* Don't fail the bind if the dsi port is not connected */ 123 if (PTR_ERR(msm_dsi) == -ENODEV) 124 return 0; 125 else 126 return PTR_ERR(msm_dsi); 127 } |
123 124 priv->dsi[msm_dsi->id] = msm_dsi; 125 126 return 0; 127} 128 129static void dsi_unbind(struct device *dev, struct device *master, 130 void *data) --- 137 unchanged lines hidden --- | 128 129 priv->dsi[msm_dsi->id] = msm_dsi; 130 131 return 0; 132} 133 134static void dsi_unbind(struct device *dev, struct device *master, 135 void *data) --- 137 unchanged lines hidden --- |