Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363105
b: refs/heads/master
c: fa88286
h: refs/heads/master
i:
  363103: bfe0f87
v: v3
  • Loading branch information
Samuel Iglesias Gonsalvez authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent fde45b2 commit f2b1bdb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1116575d918a7d5fe6d1adf46c5bbdf11dcec51b
refs/heads/master: fa882867ae5f8543eb304a1667563f1c99514475
12 changes: 12 additions & 0 deletions trunk/drivers/ipack/ipack.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,18 @@ void ipack_device_unregister(struct ipack_device *dev)
}
EXPORT_SYMBOL_GPL(ipack_device_unregister);

void ipack_get_device(struct ipack_device *dev)
{
get_device(&dev->dev);
}
EXPORT_SYMBOL_GPL(ipack_get_device);

void ipack_put_device(struct ipack_device *dev)
{
put_device(&dev->dev);
}
EXPORT_SYMBOL_GPL(ipack_put_device);

static int __init ipack_init(void)
{
ida_init(&ipack_ida);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/ipack.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ void ipack_driver_unregister(struct ipack_driver *edrv);
int ipack_device_register(struct ipack_device *dev);
void ipack_device_unregister(struct ipack_device *dev);

void ipack_get_device(struct ipack_device *dev);
void ipack_put_device(struct ipack_device *dev);

/**
* DEFINE_IPACK_DEVICE_TABLE - macro used to describe a IndustryPack table
* @_table: device table name
Expand Down

0 comments on commit f2b1bdb

Please sign in to comment.