Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371618
b: refs/heads/master
c: 0f6f959
h: refs/heads/master
v: v3
  • Loading branch information
Seung-Woo Kim authored and Inki Dae committed Apr 29, 2013
1 parent df21c11 commit 9c1dec2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1055f49e9953e5a55e8b7d54db19c4b8c1108eec
refs/heads/master: 0f6f95922e4def60b9e55cecc1fdbaacda9c426d
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/exynos/exynos_drm_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void exynos_drm_subdrv_close(struct drm_device *dev, struct drm_file *file);
* this function registers exynos drm hdmi platform device. It ensures only one
* instance of the device is created.
*/
extern int exynos_platform_device_hdmi_register(void);
int exynos_platform_device_hdmi_register(void);

/*
* this function unregisters exynos drm hdmi platform device if it exists.
Expand Down
14 changes: 10 additions & 4 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,27 @@ struct drm_hdmi_context {

int exynos_platform_device_hdmi_register(void)
{
struct platform_device *pdev;

if (exynos_drm_hdmi_pdev)
return -EEXIST;

exynos_drm_hdmi_pdev = platform_device_register_simple(
pdev = platform_device_register_simple(
"exynos-drm-hdmi", -1, NULL, 0);
if (IS_ERR(exynos_drm_hdmi_pdev))
return PTR_ERR(exynos_drm_hdmi_pdev);
if (IS_ERR(pdev))
return PTR_ERR(pdev);

exynos_drm_hdmi_pdev = pdev;

return 0;
}

void exynos_platform_device_hdmi_unregister(void)
{
if (exynos_drm_hdmi_pdev)
if (exynos_drm_hdmi_pdev) {
platform_device_unregister(exynos_drm_hdmi_pdev);
exynos_drm_hdmi_pdev = NULL;
}
}

void exynos_hdmi_drv_attach(struct exynos_drm_hdmi_context *ctx)
Expand Down

0 comments on commit 9c1dec2

Please sign in to comment.