STI_WRITE,
};
+#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2)
static int sti_netlink_read(int pid, int seq, void *payload, int size)
{
struct sk_buff *skb;
return -EINVAL;
}
+#endif
/*
* We abuse nlmsg_type and nlmsg_flags for our purposes.
{
void *data;
u8 chan, id;
- int size, ret = 0, len = 0;
+ int size;
+ int ret = 0, len = 0;
data = NLMSG_DATA(nlh);
chan = (nlh->nlmsg_flags >> 8) & 0xff;
case STI_WRITE:
sti_channel_write_trace(size, id, data, chan);
break;
+#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2)
case STI_READ:
data = kmalloc(size, GFP_KERNEL);
if (!data)
data, len);
kfree(data);
break;
+#endif
default:
return -ENOTTY;
}