Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
44d85666
Commit
44d85666
authored
Jan 30, 2011
by
Marc Kleine-Budde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can: at91_can: don't align struct definitions
Signed-off-by:
Marc Kleine-Budde
<
mkl@pengutronix.de
>
parent
e3cc055c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
drivers/net/can/at91_can.c
drivers/net/can/at91_can.c
+17
-17
No files found.
drivers/net/can/at91_can.c
View file @
44d85666
...
...
@@ -157,21 +157,21 @@ enum at91_mb_mode {
#define AT91_IRQ_ALL (0x1fffffff)
struct
at91_priv
{
struct
can_priv
can
;
/* must be the first member! */
struct
net_device
*
dev
;
struct
napi_struct
napi
;
struct
can_priv
can
;
/* must be the first member! */
struct
net_device
*
dev
;
struct
napi_struct
napi
;
void
__iomem
*
reg_base
;
void
__iomem
*
reg_base
;
u32
reg_sr
;
unsigned
int
tx_next
;
unsigned
int
tx_echo
;
unsigned
int
rx_next
;
u32
reg_sr
;
unsigned
int
tx_next
;
unsigned
int
tx_echo
;
unsigned
int
rx_next
;
struct
clk
*
clk
;
struct
at91_can_data
*
pdata
;
struct
clk
*
clk
;
struct
at91_can_data
*
pdata
;
canid_t
mb0_id
;
canid_t
mb0_id
;
};
static
struct
can_bittiming_const
at91_bittiming_const
=
{
...
...
@@ -271,7 +271,7 @@ static void at91_setup_mailboxes(struct net_device *dev)
/* reset acceptance mask and id register */
for
(
i
=
AT91_MB_RX_FIRST
;
i
<=
AT91_MB_RX_LAST
;
i
++
)
{
at91_write
(
priv
,
AT91_MAM
(
i
),
0x0
);
at91_write
(
priv
,
AT91_MAM
(
i
),
0x0
);
at91_write
(
priv
,
AT91_MID
(
i
),
AT91_MID_MIDE
);
}
...
...
@@ -1231,11 +1231,11 @@ static int __devexit at91_can_remove(struct platform_device *pdev)
}
static
struct
platform_driver
at91_can_driver
=
{
.
probe
=
at91_can_probe
,
.
remove
=
__devexit_p
(
at91_can_remove
),
.
driver
=
{
.
name
=
KBUILD_MODNAME
,
.
owner
=
THIS_MODULE
,
.
probe
=
at91_can_probe
,
.
remove
=
__devexit_p
(
at91_can_remove
),
.
driver
=
{
.
name
=
KBUILD_MODNAME
,
.
owner
=
THIS_MODULE
,
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment