| .. | .. |
|---|
| 708 | 708 | goto exit; |
|---|
| 709 | 709 | |
|---|
| 710 | 710 | priv->debugfs_dir = debugfs_create_dir(dev->name, lbs_dir); |
|---|
| 711 | | - if (!priv->debugfs_dir) |
|---|
| 712 | | - goto exit; |
|---|
| 713 | 711 | |
|---|
| 714 | 712 | for (i=0; i<ARRAY_SIZE(debugfs_files); i++) { |
|---|
| 715 | 713 | files = &debugfs_files[i]; |
|---|
| .. | .. |
|---|
| 721 | 719 | } |
|---|
| 722 | 720 | |
|---|
| 723 | 721 | priv->events_dir = debugfs_create_dir("subscribed_events", priv->debugfs_dir); |
|---|
| 724 | | - if (!priv->events_dir) |
|---|
| 725 | | - goto exit; |
|---|
| 726 | 722 | |
|---|
| 727 | 723 | for (i=0; i<ARRAY_SIZE(debugfs_events_files); i++) { |
|---|
| 728 | 724 | files = &debugfs_events_files[i]; |
|---|
| .. | .. |
|---|
| 734 | 730 | } |
|---|
| 735 | 731 | |
|---|
| 736 | 732 | priv->regs_dir = debugfs_create_dir("registers", priv->debugfs_dir); |
|---|
| 737 | | - if (!priv->regs_dir) |
|---|
| 738 | | - goto exit; |
|---|
| 739 | 733 | |
|---|
| 740 | 734 | for (i=0; i<ARRAY_SIZE(debugfs_regs_files); i++) { |
|---|
| 741 | 735 | files = &debugfs_regs_files[i]; |
|---|
| .. | .. |
|---|
| 780 | 774 | |
|---|
| 781 | 775 | #ifdef PROC_DEBUG |
|---|
| 782 | 776 | |
|---|
| 783 | | -#define item_size(n) (FIELD_SIZEOF(struct lbs_private, n)) |
|---|
| 777 | +#define item_size(n) (sizeof_field(struct lbs_private, n)) |
|---|
| 784 | 778 | #define item_addr(n) (offsetof(struct lbs_private, n)) |
|---|
| 785 | 779 | |
|---|
| 786 | 780 | |
|---|