V4L/DVB (8289): sms1xxx: remove #if LINUX_VERSION_CODE checks
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
fbd05c8213
commit
df0462e77e
@ -200,7 +200,6 @@ void smscore_registry_settype(char *devpath, enum sms_device_type_st type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void list_add_locked(struct list_head *new, struct list_head *head,
|
void list_add_locked(struct list_head *new, struct list_head *head,
|
||||||
spinlock_t *lock)
|
spinlock_t *lock)
|
||||||
{
|
{
|
||||||
@ -592,7 +591,6 @@ int smscore_load_firmware_from_file(struct smscore_device_t *coredev,
|
|||||||
loadfirmware_t loadfirmware_handler)
|
loadfirmware_t loadfirmware_handler)
|
||||||
{
|
{
|
||||||
int rc = -ENOENT;
|
int rc = -ENOENT;
|
||||||
|
|
||||||
const struct firmware *fw;
|
const struct firmware *fw;
|
||||||
u8 *fw_buffer;
|
u8 *fw_buffer;
|
||||||
|
|
||||||
@ -1228,8 +1226,7 @@ int smscore_map_common_buffer(struct smscore_device_t *coredev,
|
|||||||
|
|
||||||
if (remap_pfn_range(vma, start,
|
if (remap_pfn_range(vma, start,
|
||||||
coredev->common_buffer_phys >> PAGE_SHIFT,
|
coredev->common_buffer_phys >> PAGE_SHIFT,
|
||||||
size, pgprot_noncached(vma->vm_page_prot)))
|
size, pgprot_noncached(vma->vm_page_prot))) {
|
||||||
{
|
|
||||||
printk(KERN_INFO "%s remap_page_range failed\n", __func__);
|
printk(KERN_INFO "%s remap_page_range failed\n", __func__);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ typedef struct mutex kmutex_t;
|
|||||||
#define kmutex_trylock(_p_) mutex_trylock(_p_)
|
#define kmutex_trylock(_p_) mutex_trylock(_p_)
|
||||||
#define kmutex_unlock(_p_) mutex_unlock(_p_)
|
#define kmutex_unlock(_p_) mutex_unlock(_p_)
|
||||||
|
|
||||||
|
|
||||||
#ifndef min
|
#ifndef min
|
||||||
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user