diff options
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/kernel/ocd.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/avr32/kernel/ocd.c b/arch/avr32/kernel/ocd.c index c4f023294d75..1b0245d4e0ca 100644 --- a/arch/avr32/kernel/ocd.c +++ b/arch/avr32/kernel/ocd.c | |||
@@ -90,25 +90,29 @@ static struct dentry *ocd_debugfs_DC; | |||
90 | static struct dentry *ocd_debugfs_DS; | 90 | static struct dentry *ocd_debugfs_DS; |
91 | static struct dentry *ocd_debugfs_count; | 91 | static struct dentry *ocd_debugfs_count; |
92 | 92 | ||
93 | static u64 ocd_DC_get(void *data) | 93 | static int ocd_DC_get(void *data, u64 *val) |
94 | { | 94 | { |
95 | return ocd_read(DC); | 95 | *val = ocd_read(DC); |
96 | return 0; | ||
96 | } | 97 | } |
97 | static void ocd_DC_set(void *data, u64 val) | 98 | static int ocd_DC_set(void *data, u64 val) |
98 | { | 99 | { |
99 | ocd_write(DC, val); | 100 | ocd_write(DC, val); |
101 | return 0; | ||
100 | } | 102 | } |
101 | DEFINE_SIMPLE_ATTRIBUTE(fops_DC, ocd_DC_get, ocd_DC_set, "0x%08llx\n"); | 103 | DEFINE_SIMPLE_ATTRIBUTE(fops_DC, ocd_DC_get, ocd_DC_set, "0x%08llx\n"); |
102 | 104 | ||
103 | static u64 ocd_DS_get(void *data) | 105 | static int ocd_DS_get(void *data, u64 *val) |
104 | { | 106 | { |
105 | return ocd_read(DS); | 107 | *val = ocd_read(DS); |
108 | return 0; | ||
106 | } | 109 | } |
107 | DEFINE_SIMPLE_ATTRIBUTE(fops_DS, ocd_DS_get, NULL, "0x%08llx\n"); | 110 | DEFINE_SIMPLE_ATTRIBUTE(fops_DS, ocd_DS_get, NULL, "0x%08llx\n"); |
108 | 111 | ||
109 | static u64 ocd_count_get(void *data) | 112 | static int ocd_count_get(void *data, u64 *val) |
110 | { | 113 | { |
111 | return ocd_count; | 114 | *val = ocd_count; |
115 | return 0; | ||
112 | } | 116 | } |
113 | DEFINE_SIMPLE_ATTRIBUTE(fops_count, ocd_count_get, NULL, "%lld\n"); | 117 | DEFINE_SIMPLE_ATTRIBUTE(fops_count, ocd_count_get, NULL, "%lld\n"); |
114 | 118 | ||