diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-06 08:45:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 12:17:02 -0400 |
commit | 6d608ef351bbd0b49427b5b6c6ec6d7622bc0d22 (patch) | |
tree | 589904448c16f855cf35e9cbd89c7770b70dbd42 /drivers | |
parent | 856e35bf596e83a63c8a9ec749e9f2bcd24a1bdd (diff) |
serial: omap: optimization with section annotations
Two functions:
omap_serial_fill_features_erratas() and
of_get_uart_port_info() are only called from probe().
Marking them as __devinit gives us another
oportunity to free some code after .init.text
is done.
Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index f5dcb5aa0000..906826083e0b 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c | |||
@@ -1168,7 +1168,7 @@ static int serial_omap_resume(struct device *dev) | |||
1168 | } | 1168 | } |
1169 | #endif | 1169 | #endif |
1170 | 1170 | ||
1171 | static void omap_serial_fill_features_erratas(struct uart_omap_port *up) | 1171 | static void __devinit omap_serial_fill_features_erratas(struct uart_omap_port *up) |
1172 | { | 1172 | { |
1173 | u32 mvr, scheme; | 1173 | u32 mvr, scheme; |
1174 | u16 revision, major, minor; | 1174 | u16 revision, major, minor; |
@@ -1221,7 +1221,7 @@ static void omap_serial_fill_features_erratas(struct uart_omap_port *up) | |||
1221 | } | 1221 | } |
1222 | } | 1222 | } |
1223 | 1223 | ||
1224 | static struct omap_uart_port_info *of_get_uart_port_info(struct device *dev) | 1224 | static __devinit struct omap_uart_port_info *of_get_uart_port_info(struct device *dev) |
1225 | { | 1225 | { |
1226 | struct omap_uart_port_info *omap_up_info; | 1226 | struct omap_uart_port_info *omap_up_info; |
1227 | 1227 | ||
@@ -1234,7 +1234,7 @@ static struct omap_uart_port_info *of_get_uart_port_info(struct device *dev) | |||
1234 | return omap_up_info; | 1234 | return omap_up_info; |
1235 | } | 1235 | } |
1236 | 1236 | ||
1237 | static int serial_omap_probe(struct platform_device *pdev) | 1237 | static int __devinit serial_omap_probe(struct platform_device *pdev) |
1238 | { | 1238 | { |
1239 | struct uart_omap_port *up; | 1239 | struct uart_omap_port *up; |
1240 | struct resource *mem, *irq; | 1240 | struct resource *mem, *irq; |
@@ -1364,7 +1364,7 @@ err_port_line: | |||
1364 | return ret; | 1364 | return ret; |
1365 | } | 1365 | } |
1366 | 1366 | ||
1367 | static int serial_omap_remove(struct platform_device *dev) | 1367 | static int __devexit serial_omap_remove(struct platform_device *dev) |
1368 | { | 1368 | { |
1369 | struct uart_omap_port *up = platform_get_drvdata(dev); | 1369 | struct uart_omap_port *up = platform_get_drvdata(dev); |
1370 | 1370 | ||
@@ -1508,7 +1508,7 @@ MODULE_DEVICE_TABLE(of, omap_serial_of_match); | |||
1508 | 1508 | ||
1509 | static struct platform_driver serial_omap_driver = { | 1509 | static struct platform_driver serial_omap_driver = { |
1510 | .probe = serial_omap_probe, | 1510 | .probe = serial_omap_probe, |
1511 | .remove = serial_omap_remove, | 1511 | .remove = __devexit_p(serial_omap_remove), |
1512 | .driver = { | 1512 | .driver = { |
1513 | .name = DRIVER_NAME, | 1513 | .name = DRIVER_NAME, |
1514 | .pm = &serial_omap_dev_pm_ops, | 1514 | .pm = &serial_omap_dev_pm_ops, |