summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-20 03:22:17 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-04 15:19:12 +0200
commit3c5327e660bc840deb82030062c91e469528dd94 (patch)
tree31f150802925bf3f292ac90cdcb4ae5eb3ddd97a /drivers/serial
parentc0620a4b50c46d98c08229db4bec6b4e4a68b16b (diff)
downloadbarebox-3c5327e660bc840deb82030062c91e469528dd94.tar.gz
switch all platform_bus device/driver registering to platform_driver/device_register
now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/arm_dcc.c4
-rw-r--r--drivers/serial/atmel.c2
-rw-r--r--drivers/serial/linux_console.c2
-rw-r--r--drivers/serial/serial_altera.c2
-rw-r--r--drivers/serial/serial_altera_jtag.c2
-rw-r--r--drivers/serial/serial_blackfin.c2
-rw-r--r--drivers/serial/serial_imx.c2
-rw-r--r--drivers/serial/serial_mpc5xxx.c2
-rw-r--r--drivers/serial/serial_netx.c2
-rw-r--r--drivers/serial/serial_ns16550.c4
-rw-r--r--drivers/serial/serial_pl010.c2
-rw-r--r--drivers/serial/serial_pxa.c2
-rw-r--r--drivers/serial/serial_s3c.c2
-rw-r--r--drivers/serial/stm-serial.c2
14 files changed, 16 insertions, 16 deletions
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index 8c2253b..e82218a3 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -157,8 +157,8 @@ static struct device_d arm_dcc_device = {
static int arm_dcc_init(void)
{
- register_device(&arm_dcc_device);
- register_driver(&arm_dcc_driver);
+ platform_device_register(&arm_dcc_device);
+ platform_driver_register(&arm_dcc_driver);
return 0;
}
diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c
index 4522529..6beae25 100644
--- a/drivers/serial/atmel.c
+++ b/drivers/serial/atmel.c
@@ -421,7 +421,7 @@ static struct driver_d atmel_serial_driver = {
static int atmel_serial_init(void)
{
- register_driver(&atmel_serial_driver);
+ platform_driver_register(&atmel_serial_driver);
return 0;
}
diff --git a/drivers/serial/linux_console.c b/drivers/serial/linux_console.c
index 597c390..4a99e96 100644
--- a/drivers/serial/linux_console.c
+++ b/drivers/serial/linux_console.c
@@ -81,7 +81,7 @@ static struct driver_d linux_console_driver = {
static int console_init(void)
{
- return register_driver(&linux_console_driver);
+ return platform_driver_register(&linux_console_driver);
}
console_initcall(console_init);
diff --git a/drivers/serial/serial_altera.c b/drivers/serial/serial_altera.c
index c8dc3a5..013b32c 100644
--- a/drivers/serial/serial_altera.c
+++ b/drivers/serial/serial_altera.c
@@ -104,7 +104,7 @@ static struct driver_d altera_serial_driver = {
static int altera_serial_init(void)
{
- return register_driver(&altera_serial_driver);
+ return platform_driver_register(&altera_serial_driver);
}
console_initcall(altera_serial_init);
diff --git a/drivers/serial/serial_altera_jtag.c b/drivers/serial/serial_altera_jtag.c
index e808183..b83fcbd 100644
--- a/drivers/serial/serial_altera_jtag.c
+++ b/drivers/serial/serial_altera_jtag.c
@@ -109,7 +109,7 @@ static struct driver_d altera_serial_jtag_driver = {
static int altera_serial_jtag_init(void)
{
- return register_driver(&altera_serial_jtag_driver);
+ return platform_driver_register(&altera_serial_jtag_driver);
}
console_initcall(altera_serial_jtag_init);
diff --git a/drivers/serial/serial_blackfin.c b/drivers/serial/serial_blackfin.c
index c134fcf..2117b11 100644
--- a/drivers/serial/serial_blackfin.c
+++ b/drivers/serial/serial_blackfin.c
@@ -133,7 +133,7 @@ static struct driver_d blackfin_serial_driver = {
static int blackfin_serial_init(void)
{
- register_driver(&blackfin_serial_driver);
+ platform_driver_register(&blackfin_serial_driver);
return 0;
}
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 012ab02..61ceb48 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -375,7 +375,7 @@ static struct driver_d imx_serial_driver = {
static int imx_serial_init(void)
{
- register_driver(&imx_serial_driver);
+ platform_driver_register(&imx_serial_driver);
return 0;
}
diff --git a/drivers/serial/serial_mpc5xxx.c b/drivers/serial/serial_mpc5xxx.c
index d19eda9..81eaf07 100644
--- a/drivers/serial/serial_mpc5xxx.c
+++ b/drivers/serial/serial_mpc5xxx.c
@@ -169,7 +169,7 @@ static struct driver_d mpc5xxx_serial_driver = {
static int mpc5xxx_serial_register(void)
{
- register_driver(&mpc5xxx_serial_driver);
+ platform_driver_register(&mpc5xxx_serial_driver);
return 0;
}
diff --git a/drivers/serial/serial_netx.c b/drivers/serial/serial_netx.c
index b165d64..2ad9cfa 100644
--- a/drivers/serial/serial_netx.c
+++ b/drivers/serial/serial_netx.c
@@ -158,7 +158,7 @@ static struct driver_d netx_serial_driver = {
static int netx_serial_init(void)
{
- register_driver(&netx_serial_driver);
+ platform_driver_register(&netx_serial_driver);
return 0;
}
diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index 9984437..0ea940d 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -266,11 +266,11 @@ static struct driver_d ns16550_serial_driver = {
/**
* @brief driver initialization function
*
- * @return result of register_driver
+ * @return result of platform_driver_register
*/
static int ns16550_serial_init(void)
{
- return register_driver(&ns16550_serial_driver);
+ return platform_driver_register(&ns16550_serial_driver);
}
console_initcall(ns16550_serial_init);
diff --git a/drivers/serial/serial_pl010.c b/drivers/serial/serial_pl010.c
index fd17a3a..0526b00 100644
--- a/drivers/serial/serial_pl010.c
+++ b/drivers/serial/serial_pl010.c
@@ -160,7 +160,7 @@ static struct driver_d pl010_driver = {
static int pl010_init(void)
{
- register_driver(&pl010_driver);
+ platform_driver_register(&pl010_driver);
return 0;
}
diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index adfbe82..08f3d7f 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -198,7 +198,7 @@ static struct driver_d pxa_serial_driver = {
static int pxa_serial_init(void)
{
- return register_driver(&pxa_serial_driver);
+ return platform_driver_register(&pxa_serial_driver);
}
console_initcall(pxa_serial_init);
diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c
index 08212c7..ed401ab 100644
--- a/drivers/serial/serial_s3c.c
+++ b/drivers/serial/serial_s3c.c
@@ -216,7 +216,7 @@ static struct driver_d s3c_serial_driver = {
static int s3c_serial_init(void)
{
- register_driver(&s3c_serial_driver);
+ platform_driver_register(&s3c_serial_driver);
return 0;
}
diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c
index 958cc76..3968892 100644
--- a/drivers/serial/stm-serial.c
+++ b/drivers/serial/stm-serial.c
@@ -190,7 +190,7 @@ static struct driver_d stm_serial_driver = {
static int stm_serial_init(void)
{
- register_driver(&stm_serial_driver);
+ platform_driver_register(&stm_serial_driver);
return 0;
}