|
@@ -31,7 +31,7 @@ static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
|
|
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
|
|
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
|
|
int phyid);
|
|
int phyid);
|
|
|
|
|
|
-struct cflayer *cfserl_create(int type, int instance, bool use_stx)
|
|
|
|
|
|
+struct cflayer *cfserl_create(int instance, bool use_stx)
|
|
{
|
|
{
|
|
struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);
|
|
struct cfserl *this = kzalloc(sizeof(struct cfserl), GFP_ATOMIC);
|
|
if (!this)
|
|
if (!this)
|
|
@@ -40,7 +40,6 @@ struct cflayer *cfserl_create(int type, int instance, bool use_stx)
|
|
this->layer.receive = cfserl_receive;
|
|
this->layer.receive = cfserl_receive;
|
|
this->layer.transmit = cfserl_transmit;
|
|
this->layer.transmit = cfserl_transmit;
|
|
this->layer.ctrlcmd = cfserl_ctrlcmd;
|
|
this->layer.ctrlcmd = cfserl_ctrlcmd;
|
|
- this->layer.type = type;
|
|
|
|
this->usestx = use_stx;
|
|
this->usestx = use_stx;
|
|
spin_lock_init(&this->sync);
|
|
spin_lock_init(&this->sync);
|
|
snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1");
|
|
snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1");
|