card->bar0 + TPAM_PAGE_REGISTER);
/* write the value */
- writel(val, card->bar0 + (((u32)addr) & TPAM_PAGE_SIZE));
+ writel(val, card->bar0 + (((unsigned long)addr) & TPAM_PAGE_SIZE));
}
/*
*
* Return: 0 if OK, <0 if error.
*/
-int copy_from_pam_to_user(tpam_card *card, void *to, const void *from, u32 n) {
+int copy_from_pam_to_user(tpam_card *card, void __user *to, const void *from, u32 n) {
void *page;
u32 count;
*
* Return: 0 if OK, <0 if error.
*/
-int copy_from_user_to_pam(tpam_card *card, void *to, const void *from, u32 n) {
+int copy_from_user_to_pam(tpam_card *card, void *to, const void __user *from, u32 n) {
void *page;
u32 count;