Skip to content

Commit

Permalink
staging: tidspbridge: Remove ntfy.c
Browse files Browse the repository at this point in the history
As the services directory is going to be removed, this patch is needed.

ntfy.c only contained the function dsp_notifier_event(), and since this
function calls sync_set_event(), then the dsp_notifier_event() is moved
to the sync.c file.

Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ivan Gomez Castellanos authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 3aa1e0e commit 27e7f23
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 32 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/tidspbridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ obj-$(CONFIG_TIDSPBRIDGE) += bridgedriver.o

libgen = gen/gb.o gen/gs.o gen/gh.o gen/uuidutil.o
libservices = services/cfg.o \
services/ntfy.o services/services.o
services/services.o
libcore = core/chnl_sm.o core/msg_sm.o core/io_sm.o core/tiomap3430.o \
core/tiomap3430_pwr.o core/tiomap_io.o \
core/ue_deh.o core/wdt.o core/dsp-clock.o core/sync.o
Expand Down
17 changes: 17 additions & 0 deletions drivers/staging/tidspbridge/core/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/* ----------------------------------- This */
#include <dspbridge/sync.h>
#include <dspbridge/ntfy.h>

DEFINE_SPINLOCK(sync_lock);

Expand Down Expand Up @@ -102,3 +103,19 @@ int sync_wait_on_multiple_events(struct sync_object **events,
return status;
}

/**
* dsp_notifier_event() - callback function to nofity events
* @this: pointer to itself struct notifier_block
* @event: event to be notified.
* @data: Currently not used.
*
*/
int dsp_notifier_event(struct notifier_block *this, unsigned long event,
void *data)
{
struct ntfy_event *ne = container_of(this, struct ntfy_event,
noti_block);
if (ne->event & event)
sync_set_event(&ne->sync_obj);
return NOTIFY_OK;
}
31 changes: 0 additions & 31 deletions drivers/staging/tidspbridge/services/ntfy.c

This file was deleted.

0 comments on commit 27e7f23

Please sign in to comment.