Re: [PATCHv3 05/14] HSI: Add channel resource support to HSI clients

2014-04-25 Thread Sebastian Reichel
On Sat, Apr 19, 2014 at 09:11:26PM +0200, Pavel Machek wrote: > Hi! > > > Make HSI channel ids platform data, which can be provided > > by platform data. > > > > > static void hsi_client_release(struct device *dev) > > { > > - kfree(to_hsi_client(dev)); > > + struct hsi_client *cl = to_hsi_

Re: [PATCHv3 05/14] HSI: Add channel resource support to HSI clients

2014-04-19 Thread Pavel Machek
Hi! > Make HSI channel ids platform data, which can be provided > by platform data. > > static void hsi_client_release(struct device *dev) > { > - kfree(to_hsi_client(dev)); > + struct hsi_client *cl = to_hsi_client(dev); > + > + if (cl->tx_cfg.channels) > + kfree(cl->tx

[PATCHv3 05/14] HSI: Add channel resource support to HSI clients

2014-03-28 Thread Sebastian Reichel
Make HSI channel ids platform data, which can be provided by platform data. Signed-off-by: Sebastian Reichel --- drivers/hsi/clients/hsi_char.c | 12 +-- drivers/hsi/hsi.c | 49 +- include/linux/hsi/hsi.h| 24 +-