diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-07-20 09:46:49 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-20 10:01:25 +0200 |
commit | dab7dfcec3bdd4aad2fad738cb2e3d3344ed0e3e (patch) | |
tree | f8f05d1e4b46472710f44c5013353b3c20a03cf2 /include | |
parent | b47220d7f70df9191fc456dbcaeaa6ead72c6c02 (diff) | |
download | barebox-dab7dfcec3bdd4aad2fad738cb2e3d3344ed0e3e.tar.gz barebox-dab7dfcec3bdd4aad2fad738cb2e3d3344ed0e3e.tar.xz |
serial_ns16550: change the driver's name
The name "serial_ns16550" is not handy because the devices
will have the names like "serial_ns165500", "serial_ns165501",
"serial_ns165502" etc.
The names like "ns16550_serial0" and "ns16550_serial1" look
much better.
Also it is reasonable to make serial driver's names unification.
E.g. see the names for drivers in drivers/serial directory:
"netx_serial",
"mpc5xxx_serial",
"altera_serial",
"s3c_serial",
"imx_serial",
"pxa_serial",
"blackfin_serial",
"stm_serial",
"pl010_serial",
and even "g_serial" in ./drivers/usb/gadget/serial.c
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index 7d597b41b7..0a8dc8edd3 100644 --- a/include/driver.h +++ b/include/driver.h @@ -226,7 +226,7 @@ struct NS16550_plat; static inline struct device_d *add_ns16550_device(int id, resource_size_t start, resource_size_t size, int flags, struct NS16550_plat *pdata) { - return add_generic_device("serial_ns16550", id, NULL, start, size, + return add_generic_device("ns16550_serial", id, NULL, start, size, IORESOURCE_MEM | flags, pdata); } |