mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
132a5b915f
The exynos drm driver has several subdrv. They each can be module but it causes unfixed probe order of exynodr drm driver and each subdrv. It also needs some weird codes such as exynos_drm_fbdev_reinit and exynos_drm_mode_group_reinit. This patch can remove weird codes and clear codes through we doesn't modularity each subdrv. Also this removes unnecessary codes related module. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2011 Samsung Electronics Co.Ltd
|
|
* Authors:
|
|
* Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
* Inki Dae <inki.dae@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*
|
|
*/
|
|
|
|
#include "drmP.h"
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/i2c.h>
|
|
#include <linux/module.h>
|
|
|
|
|
|
#include "exynos_drm_drv.h"
|
|
#include "exynos_hdmi.h"
|
|
|
|
static int s5p_ddc_probe(struct i2c_client *client,
|
|
const struct i2c_device_id *dev_id)
|
|
{
|
|
hdmi_attach_ddc_client(client);
|
|
|
|
dev_info(&client->adapter->dev, "attached s5p_ddc "
|
|
"into i2c adapter successfully\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
static int s5p_ddc_remove(struct i2c_client *client)
|
|
{
|
|
dev_info(&client->adapter->dev, "detached s5p_ddc "
|
|
"from i2c adapter successfully\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
static struct i2c_device_id ddc_idtable[] = {
|
|
{"s5p_ddc", 0},
|
|
{ },
|
|
};
|
|
|
|
struct i2c_driver ddc_driver = {
|
|
.driver = {
|
|
.name = "s5p_ddc",
|
|
.owner = THIS_MODULE,
|
|
},
|
|
.id_table = ddc_idtable,
|
|
.probe = s5p_ddc_probe,
|
|
.remove = __devexit_p(s5p_ddc_remove),
|
|
.command = NULL,
|
|
};
|