[COMMON] serial: samsung: modify clk name to ipclk and gate clk
authormyung-su.cha <myung-su.cha@samsung.com>
Wed, 21 Mar 2018 09:07:04 +0000 (18:07 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I2d193cf9870b7f9af8128a2a509bbb23f923d6a3
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
drivers/tty/serial/samsung.c

index 3a3fe28547424cee8e5cfddc0a316db3df606df7..b94200b33d4cf559f97d8298eadb278e9a88a4fe 100644 (file)
@@ -816,7 +816,7 @@ static void s3c24xx_serial_pm(struct uart_port *port, unsigned int level,
  *
 */
 
-#define MAX_CLK_NAME_LENGTH 15
+#define MAX_CLK_NAME_LENGTH 20
 
 static unsigned int s3c24xx_serial_getclk(struct s3c24xx_uart_port *ourport,
                        unsigned int req_baud, struct clk **best_clk,
@@ -1430,7 +1430,7 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
        else
                ourport->check_separated_clk = 0;
 
-       snprintf(clkname, sizeof(clkname), "gate_uart%d", ourport->port.line);
+       snprintf(clkname, sizeof(clkname), "ipclk_uart%d", ourport->port.line);
        ourport->clk = devm_clk_get(&platdev->dev, clkname);
        if (IS_ERR(ourport->clk)) {
                pr_err("%s: Controller clock not found\n",
@@ -1439,7 +1439,7 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
        }
 
        if (ourport->check_separated_clk) {
-               snprintf(clkname, sizeof(clkname), "gate_pclk%d", ourport->port.line);
+               snprintf(clkname, sizeof(clkname), "gate_uart_clk%d", ourport->port.line);
                ourport->separated_clk = devm_clk_get(&platdev->dev, clkname);
                if (IS_ERR(ourport->separated_clk)) {
                        pr_err("%s: Controller clock not found\n",