From 12a238538f13148831752543338a01dd8eac350a Mon Sep 17 00:00:00 2001 From: LeTama Date: Thu, 30 Sep 2010 16:40:14 +0200 Subject: [PATCH] Revert "htcleo: partialy fix for ril on nand boot" This reverts commit 6fada7185dcfc6bc2ba5e3b3d9aa76d0b6ca5cc9. Missing AT commands plus this one have been moved to ril wrapper library --- arch/arm/mach-msm/smd_tty.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/mach-msm/smd_tty.c b/arch/arm/mach-msm/smd_tty.c index 68269b1a..1d1802a3 100644 --- a/arch/arm/mach-msm/smd_tty.c +++ b/arch/arm/mach-msm/smd_tty.c @@ -27,7 +27,6 @@ #include #include -#include "board-htcleo.h" #define MAX_SMD_TTYS 32 @@ -200,9 +199,6 @@ static int smd_tty_write(struct tty_struct *tty, struct smd_tty_info *info = tty->driver_data; int avail; int ret; - static int init=0; - const unsigned char* firstcall="AT@BRIC=0\r"; - unsigned int firstcall_len; /* if we're writing to a packet channel we will ** never be able to write more data than there @@ -211,17 +207,6 @@ static int smd_tty_write(struct tty_struct *tty, #ifndef CONFIG_MACH_HTCLEO mutex_lock(&smd_tty_lock); #endif - if(len>7 && !init && htcleo_is_nand_boot()) { - if(strncmp(buf, "AT+CFUN", 7)==0) { - pr_info("SMD AT FIX!\n"); - firstcall_len = strlen(firstcall); - avail = smd_write_avail(info->ch); - if (firstcall_len > avail) - firstcall_len = avail; - ret = smd_write(info->ch, firstcall, firstcall_len); - init=1; - } - } avail = smd_write_avail(info->ch); if (len > avail) len = avail;