summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus/GpakCust.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-02-08 22:49:31 +0000
committerShaun Ruffell <sruffell@digium.com>2010-02-08 22:49:31 +0000
commit791a3df5afe66a8cbe15ebe030c2956fd2e00818 (patch)
tree9d8bacb1cb7a32283d7795607522d312cd0330a6 /drivers/dahdi/voicebus/GpakCust.c
parentaeee4d888dc689a885187d77488d6754ae853dce (diff)
voicebus: Remove unused 'voicebus_get_pci_dev'.
Function is no longer needed since the 'struct voicebus' is now embedded in the client contexts. This commit also contains a few trivial formatting changes for sparse's sake. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8002 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus/GpakCust.c')
-rw-r--r--drivers/dahdi/voicebus/GpakCust.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c
index bcf8bc7..9491818 100644
--- a/drivers/dahdi/voicebus/GpakCust.c
+++ b/drivers/dahdi/voicebus/GpakCust.c
@@ -129,7 +129,7 @@ static struct vpmadt032_cmd *vpmadt032_getreg_full_async(struct vpmadt032 *vpm,
}
/* Get the results from a previous call to vpmadt032_getreg_full_async. */
-int vpmadt032_getreg_full_return(struct vpmadt032 *vpm, int pagechange,
+static int vpmadt032_getreg_full_return(struct vpmadt032 *vpm, int pagechange,
u16 addr, u16 *outbuf, struct vpmadt032_cmd *cmd)
{
unsigned long flags;
@@ -742,7 +742,7 @@ void gpakReadDspMemory(
vpmadt032_io_wait(vpm);
if ( NumWords < VPM150M_MAX_COMMANDS ) {
- struct vpmadt032_cmd *cmds[VPM150M_MAX_COMMANDS] = {0};
+ struct vpmadt032_cmd *cmds[VPM150M_MAX_COMMANDS] = {NULL};
vpmadt032_setpage(vpm, DspAddress >> 16);
DspAddress &= 0xffff;
for (i=0; i < NumWords; ++i) {