diff options
Diffstat (limited to 'drivers/telephony/ixj_pcmcia.c')
-rw-r--r-- | drivers/telephony/ixj_pcmcia.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/telephony/ixj_pcmcia.c b/drivers/telephony/ixj_pcmcia.c index 3e658dc7c2d8..ff9a29b76336 100644 --- a/drivers/telephony/ixj_pcmcia.c +++ b/drivers/telephony/ixj_pcmcia.c | |||
@@ -45,11 +45,10 @@ static int ixj_probe(struct pcmcia_device *p_dev) | |||
45 | p_dev->io.Attributes2 = IO_DATA_PATH_WIDTH_8; | 45 | p_dev->io.Attributes2 = IO_DATA_PATH_WIDTH_8; |
46 | p_dev->io.IOAddrLines = 3; | 46 | p_dev->io.IOAddrLines = 3; |
47 | p_dev->conf.IntType = INT_MEMORY_AND_IO; | 47 | p_dev->conf.IntType = INT_MEMORY_AND_IO; |
48 | p_dev->priv = kmalloc(sizeof(struct ixj_info_t), GFP_KERNEL); | 48 | p_dev->priv = kzalloc(sizeof(struct ixj_info_t), GFP_KERNEL); |
49 | if (!p_dev->priv) { | 49 | if (!p_dev->priv) { |
50 | return -ENOMEM; | 50 | return -ENOMEM; |
51 | } | 51 | } |
52 | memset(p_dev->priv, 0, sizeof(struct ixj_info_t)); | ||
53 | 52 | ||
54 | return ixj_config(p_dev); | 53 | return ixj_config(p_dev); |
55 | } | 54 | } |