Commit 32fc453e authored by Russell King's avatar Russell King

[ARM] Acorn expansion card core update.

Add __iomem annotations and use iomem functions where appropriate.
Separate out expansion card allocation/initialisation and freeing.
Convert device attributes to be handled by driver core.
Clean up deprecated function warnings for internal ecard_address
usage.
Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent 4ee9f192
This diff is collapsed.
...@@ -155,8 +155,8 @@ struct expansion_card { ...@@ -155,8 +155,8 @@ struct expansion_card {
struct resource resource[ECARD_NUM_RESOURCES]; struct resource resource[ECARD_NUM_RESOURCES];
/* Public data */ /* Public data */
volatile unsigned char *irqaddr; /* address of IRQ register */ void __iomem *irqaddr; /* address of IRQ register */
volatile unsigned char *fiqaddr; /* address of FIQ register */ void __iomem *fiqaddr; /* address of FIQ register */
unsigned char irqmask; /* IRQ mask */ unsigned char irqmask; /* IRQ mask */
unsigned char fiqmask; /* FIQ mask */ unsigned char fiqmask; /* FIQ mask */
unsigned char claimed; /* Card claimed? */ unsigned char claimed; /* Card claimed? */
...@@ -207,9 +207,16 @@ struct in_chunk_dir { ...@@ -207,9 +207,16 @@ struct in_chunk_dir {
extern int ecard_readchunk (struct in_chunk_dir *cd, struct expansion_card *ec, int id, int num); extern int ecard_readchunk (struct in_chunk_dir *cd, struct expansion_card *ec, int id, int num);
/* /*
* Obtain the address of a card * Obtain the address of a card. This returns the "old style" address
* and should no longer be used.
*/ */
extern __deprecated unsigned int ecard_address (struct expansion_card *ec, card_type_t card_type, card_speed_t speed); static inline unsigned int __deprecated
ecard_address(struct expansion_card *ec, card_type_t type, card_speed_t speed)
{
extern unsigned int __ecard_address(struct expansion_card *,
card_type_t, card_speed_t);
return __ecard_address(ec, type, speed);
}
/* /*
* Request and release ecard resources * Request and release ecard resources
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment